• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Failure [INSTALL_FAILED_INVALID_APK]

New Here ,
Sep 10, 2010 Sep 10, 2010

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

TOPICS
Development

Views

23.7K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Sep 10, 2010 Sep 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.

Votes

Translate

Translate
Guest
Sep 10, 2010 Sep 10, 2010

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 10, 2010 Sep 10, 2010

Copy link to clipboard

Copied

Thanks for the help pal. This solved the problem

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Sep 16, 2010 Sep 16, 2010

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 16, 2010 Sep 16, 2010

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 18, 2011 Feb 18, 2011

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 15, 2011 Jul 15, 2011

Copy link to clipboard

Copied

I want to try this but not able to find build.xml, can anyone tell me where is it?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 03, 2011 Oct 03, 2011

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 23, 2011 Sep 23, 2011

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 16, 2012 Jan 16, 2012

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines