Copy link to clipboard
Copied
I am using 20100909 build of AIR for Android. Following Developing_AIR_Apps_for_Android.pdf, i managed to go through all the steps and created a simple apk. The emulator is also up and running and I can install Runtime_Emulator_xxxxxx.apk on it.
However, when I try to install my apk using:
adb -e install -r myapp.apk
I get the following error:
bash-3.2$ adb -e install -r myapp.apk
400 KB/s (212272 bytes in 0.517s)
pkg: /data/local/tmp/myapp.apk
Failure [INSTALL_FAILED_INVALID_APK]
Googling shows result that are not AIR centric, and searching this forum doesn't show anything useful. Any suggestion on how I should go about resolving this problem, or at least dump out more useful error/warning message along the chain?
PS: I am on Mac OSX and using amxmlc from flex sdk 3.2.0 to generate the swf, in case this info is useful...
Same here.
It seems lib/adt.jar does not create a proper apk.
Using older build (20100802) does not having this problem.
As a workaround (until Adobe fixes it) copy adt.jar from an older build to the latest.
Copy link to clipboard
Copied
Same here.
It seems lib/adt.jar does not create a proper apk.
Using older build (20100802) does not having this problem.
As a workaround (until Adobe fixes it) copy adt.jar from an older build to the latest.
Copy link to clipboard
Copied
Thanks for the help pal. This solved the problem
Copy link to clipboard
Copied
Actually there is a change when creating an apk for a device or an emulator.
So adt.exe/jar is ok, you just need to provide different -target value, i.e.:
For physical device:
adt.bat -package -target apk -storetype pkcs12...
For emulator:
adt.bat -package -target apk-emulator -storetype pkcs12...
Dimitar G.
Copy link to clipboard
Copied
Thanks for sharing. I just tried on 0916 build and this command works. Hope Adobe will update the document to reflect his...
Copy link to clipboard
Copied
Thank you Dimitart G!
I change
<property name="apk.target" value="apk"/>
to
<property name="apk.target" value="apk-emulator"/>
in build.xml file, and I can install on the emulator device.
Nice suggestion.
Copy link to clipboard
Copied
I want to try this but not able to find build.xml, can anyone tell me where is it?
Copy link to clipboard
Copied
Hey,
I'm having this exact same problem with my device. Do you know where on the Internet we can find an older build of adt.jar?
Copy link to clipboard
Copied
Hi,
You can also refer this post: http://blog.teamgrowth.net/index.php/mobile-application-development/how-to-run-applications-created-...
Hope you find it uselful
Copy link to clipboard
Copied
Older version does not have this problem. Try this old version.
http://www.freewarelovers.com/android/download/temp/1291733918_Adobe_Flash_Player_10.1.61.68.apk