-
20 Mar 2012 4:32 PM #1
Native Android Build Launching Issue
Native Android Build Launching Issue
Can't seem to figure out a small annoying bug. when i run "sencha app build native" everything seems to run perfectly. I get an apk file generated in my build folder, the application is also installed on my attached android device but it is not started automatically. I am getting this error in the command prompt
'Error: Bad component name: com.mycompany.myAppID.STActivity'
followed by a '""C:\Developer\SDKs\Android\tools\android" create project --target android-15.....' command
then i see this '[ERROR] 4969 KB/s (840559 bytes in 0.165s)'
Any help? thanks
-
20 Mar 2012 4:46 PM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,659
- Vote Rating
- 14
Thank you for the report, can you also post the details of your operating system and app.json file?
-
21 Mar 2012 7:11 AM #3
I am on Windows 7 64bit
Sencha SDK located at: C:\SenchaSDKTools-2.0.0-Beta
Project located at C:\Users\{username}\Desktop\TestSencha
I never edited the app.json so it looks like this
Code:{ /** * The application's namespace, used by Sencha Command to generate classes */ "name": "MyApp", /** * List of all JavaScript assets in the right execution order. * Each item is an object with the following format: * { * "path": "path/to/script.js" // Relative path to this app.json file * "update": "delta" // (Optional) * // - If not specified, this file will only be loaded once, and * // cached inside localStorage until this value is changed. * // - "delta" to enable over-the-air delta update for this file * // - "full" means full update will be made when this file changes * * } */ "js": [ { "path": "sdk/sencha-touch.js" }, { "path": "app.js", "update": "delta" } ], /** * List of all CSS assets in the right inclusion order. * Each item is an object with the following format: * { * "path": "path/to/item.css" // Relative path to this app.json file * "update": "delta" // (Optional) * // - If not specified, this file will only be loaded once, and * // cached inside localStorage until this value is changed to either one below * // - "delta" to enable over-the-air delta update for this file * // - "full" means full update will be made when this file changes * * } */ "css": [ { "path": "resources/css/app.css", "update": "delta" } ], /** * Used to automatically generate cache.manifest (HTML 5 application cache manifest) file when you build */ "appCache": { /** * List of items in the CACHE MANIFEST section */ "cache": [ "index.html" ], /** * List of items in the NETWORK section */ "network": [ "*" ], /** * List of items in the FALLBACK section */ "fallback": [] }, /** * Extra resources to be copied along when build */ "extras": [ "resources/images", "resources/icons", "resources/loading" ], /** * Directory path to store all previous production builds. Note that the content generated inside this directory * must be kept intact for proper generation of delta between updates */ "archivePath": "archive", /** * Default paths to build this application to for each environment */ "buildPaths": { "testing": "build/testing", "production": "build/production", "package": "build/package", "native": "build/native" }, /** * Build options */ "buildOptions": { "product": "touch", "minVersion": 3, "debug": false, "logger": "no" }, /** * Uniquely generated id for this application, used as prefix for localStorage keys. * Normally you should never change this value. */ "id": "4614dfa0-72ac-11e1-b039-c92a30fc5d33" }
-
22 Mar 2012 3:06 AM #4
I have the exact same problem, any clue on the solution?
-
22 Mar 2012 8:22 AM #5Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,659
- Vote Rating
- 14
We are working on some major rewrite of the builder tool due to some issues with JSDB on the Windows platform. We will have a new update on it as soon as it's ready.
-
22 Mar 2012 8:54 AM #6
That sounds great, currently it's not horrible i just have to go launch the application myself, but also the problems with spaces int he folder structure and such sucked up some of my time. Anyways excited to see the update. Thanks for letting us know the status!
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-2537
in
2.0.


Reply With Quote