Skip to main content
Participant
Sep 10, 2010 9:17 AM UTC
Answered

Failure [INSTALL_FAILED_INVALID_APK]

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...

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer
Sep 10, 2010 2:13 PM UTC

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.

9 replies

Participant
Jan 17, 2012 6:09 AM UTC

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

Translate
Participant
Sep 23, 2011 1:57 PM UTC
Correct answer
Sep 10, 2010 2:13 PM UTC

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.

Translate
Participant
Sep 10, 2010 5:04 PM UTC

Thanks for the help pal. This solved the problem

Translate
Sep 16, 2010 2:38 PM UTC

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.

Translate