Skip to main content
Participant
September 10, 2010
Answered

Failure [INSTALL_FAILED_INVALID_APK]

  • September 10, 2010
  • 3 replies
  • 24637 views

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 has been closed for replies.
Correct answer

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.

3 replies

Participant
January 17, 2012
Participant
September 23, 2011
Correct answer
September 10, 2010

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.

Participant
September 10, 2010

Thanks for the help pal. This solved the problem

September 16, 2010

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.