27 Feb 2012 4:45 AM #1
No APK file gets created when trying to package Touch app for Android
I am having a go at packaging up my Touch application into native Android using the 2.0 beta version of the SDK tools.
I have created a config file and when I run the package command from my command line tool, I don't see any output in the console to suggest an apk file has generated and no file appears in the target directory specified in the config file either. I dont get any errors either, the console just gives me a new command line.
I am at a dead end now, has anyone out there successfully packaged up an apk file following the Touch docs here http://docs.sencha.com/touch/2-0/#!/...native_android
27 Feb 2012 11:54 AM #2
same problem here
the same problem on windows 7 64 bit.
I traced the problem to the following: there is a console program stbuild.exe that installs as part of sencha SDK and that is called when you do sencha package config.json
the thing is : when you change the platform name in the config from IOSSImulator to either Android or AndroidEmulator, stbuild stops analyzing the file and does not do anything - even if all paths in the config are plain wrong.
for IOS it at least prints messages like "build/ directory does not exist - cannot copy files" and so on.
so this may well be a problem with the current version of stbuild.exe in Sencha Touch SDK
27 Feb 2012 1:24 PM #3
I am also running windows 7 64 bit, sounding more and more like a bug in the sdk tools now!?
28 Feb 2012 12:44 AM #4
Same issue with SenchaSDKTools 2.0.0 beta for MAC OSx Lion.
platform: IOSSImulator works,
AndroidEmulator does not create or tell me anything.
28 Feb 2012 3:56 AM #5
Ok, I have now managed to get the packager running on an Windows XP machine and am now seeing debug in the console.
The build keeps failing for me as follows:
C:\AndroidApps\BuildTemplates>sencha package run pptouchTemplate.json Created directory C:\AndroidApps\BuildTemplates\build\src\sbs\pinpointers\pptouc h Added file C:\AndroidApps\BuildTemplates\build\src\sbs\pinpointers\pptouch\STAct ivity.java Created directory C:\AndroidApps\BuildTemplates\build\bin Created directory C:\AndroidApps\BuildTemplates\build\libs Created directory C:\AndroidApps\BuildTemplates\build\res\values Added file C:\AndroidApps\BuildTemplates\build\res\values\strings.xml Created directory C:\AndroidApps\BuildTemplates\build\res\layout Added file C:\AndroidApps\BuildTemplates\build\res\layout\main.xml Added file C:\AndroidApps\BuildTemplates\build\AndroidManifest.xml Added file C:\AndroidApps\BuildTemplates\build\build.xml Buildfile: C:\AndroidApps\BuildTemplates\build\build.xml [setup] Project Target: Android 2.1 [setup] API level: 7 -compile-tested-if-test: -dirs: [echo] Creating output directories if needed... [mkdir] Created dir: C:\AndroidApps\BuildTemplates\build\gen [mkdir] Created dir: C:\AndroidApps\BuildTemplates\build\bin\classes -resource-src: [echo] Generating R.java / Manifest.java from the resources... [exec] libpng error: Read Error [exec] ERROR: Failure processing PNG image C:\AndroidApps\BuildTemplates\bu ild\res\drawable-hdpi\icon.png [exec] libpng error: Read Error [exec] ERROR: Failure processing PNG image C:\AndroidApps\BuildTemplates\bu ild\res\drawable-ldpi\icon.png [exec] libpng error: Read Error [exec] ERROR: Failure processing PNG image C:\AndroidApps\BuildTemplates\bu ild\res\drawable-mdpi\icon.png [exec] C:\AndroidApps\BuildTemplates\build\AndroidManifest.xml:10: error: E rror: No resource found that matches the given name (at 'icon' with value '@draw able/icon'). ""C:/android-sdk-windows/tools/android" create project --target android-7 --name PinpointersTouch --activity STActivity --path "build//" --package sbs.pinpointe rs.pptouch" Could not install application Failed to run packaged application
I have made sure my icon conforms to the Android developers guide too.
28 Feb 2012 8:18 AM #6
I have even tried an image from an Android launcher icon sample pack from their developer site but still I get the same build errors as above.
29 Feb 2012 12:29 PM #7
please post your json configuration files or send them to firstname.lastname@example.org, I will try to fix those issues as soon as possible. Also don't hesitate to contact me directly through email so we could figure out why it's not working for you and fix it. thanks!
18 Jul 2012 8:49 AM #8
Have same issue ie not able to create a apk file.
Please note my android.json
While build (sencha package run android.json), I get following errors:
Total time: 0 seconds
can't find 'C:/release\AthenaMobile.apk' to install
Copy operation failed src=C:/apache-tomcat-7.0.23/webapps/AthenaMobile\\C:/Icon.
23 Jan 2013 2:20 PM #9
Is this been solved. Still having the same problem here.
23 Jan 2013 2:36 PM #10
this config is very outdated, install latest Sencha Command, then run sencha generate app and look on packager.json. Anyway, it is best to work though Sencha Command using "sencha app build native" rather then using packager (stbuild) directly.