-
8 Jun 2012 12:43 AM #1
Unanswered: Steps to running sencha touch 2 app on android emulator.
Unanswered: Steps to running sencha touch 2 app on android emulator.
Hi all,
I would like to know what is the step by step process for running sencha touch 2 app on android emulator.
you can find my source code in this link and what is my state currently http://www.sencha.com/forum/showthre...tor-on-windows
really it is driving me mad...
pls guide me
-
8 Jun 2012 4:19 AM #2
How about a little more info, please?
- Does your app run in browser?
- Did you create the app initially with "sencha app create"?
- Do you have the emulator running?
- have you edited packager.json in your project directory?
- set "platform":"Android" in packager.json. DO NOT USE "platform":"AndroidEmulator"!
WorthCode:sencha app build native
-
8 Jun 2012 9:24 PM #3
Hi, thanks for the reply.
I have installed the http://dl.dropbox.com/u/8793605/stbuild.msi
Yes i have created the app using sencha app create command in the command line only.
I have changed the packager.json file as per your instruction.( Android emulator - Android)
currently i am having the below error
Please let me know what is the issue hereCode:C:\path\to\www\mysenchaapp>sencha app build native [INFO] Deploying your application to C:\path\to\www\mysenchaapp\build\package [INFO] Copied sdk/sencha-touch.js [INFO] Copied app.js [INFO] Copied resources/css/app.css [INFO] Copied resources/images [INFO] Copied resources/icons [INFO] Copied resources/loading [INFO] Resolving your application dependencies... [INFO] Found 139 dependencies. Concatenating all into app.js... [INFO] Processed sdk/sencha-touch.js [INFO] Minifying sdk/sencha-touch.js [INFO] Processed app.js [INFO] Minifying app.js [INFO] Minifying resources/css/app.css [INFO] Minified sdk/sencha-touch.js [INFO] Minified app.js [INFO] Minified resources/css/app.css [INFO] Generated app.json [INFO] Embedded microloader into index.html [INFO] Packaging your application as a native app... [INFO] Required field (versionCode) is missing from config fileFailed to package application
-
9 Jun 2012 2:52 AM #4
application.json
application.json
Can you please post your application.json file?
-
9 Jun 2012 3:56 AM #5
-
10 Jun 2012 8:56 PM #6
Hi,
{
"applicationName":"appName", "applicationId":"appID",
"bundleSeedId":"appName",
"versionString":"1.0",
"versionCode":"1", //Add version code config and check " :"
"iconName":"resources/icons/icon.png",
"inputPath":"D:/senchadev/",
"outputPath":"build/",
"configuration":"Debug",
"platform":"AndroidEmulator",
"deviceType":"Universal",
"certificatePath":"Your KeyStore",
"certificateAlias":"Your alias",
"sdkPath":"C:/Program Files/Android/android-sdk",
"androidAPILevel":"15",
"orientations": [
"portrait",
"landscapeLeft",
"landscapeRight",
"portraitUpsideDown"
]
}
Now it should work
Thnks


Reply With Quote