简体   繁体   中英

Prompting INSTALL_FAILED_INVALID_APK while debugging Flash Builder 4 mobile app on real device

I am trying to build a demo application to test how can i debug or launch my android application on real device.

I have Froyo Android, OSX laptop and Flash Builder 4 IDE.

I build a very simple application, please have a look on image below:

在此处输入图像描述

in this when user click on "Click Me" button an email and address will be display in bottom textArea. Application is working fine on Flash Builder 4 emulator but when i try to debug application on my device, it prompt me the error below:

Error occurred while installing the application: 1580 KB/s (6108444 bytes in 3.773s) pkg: /data/local/tmp/Runtime.apk Failure [INSTALL_FAILED_INVALID_APK]

or when i create.apk file and try to install it on my device, Again it says me "Error in installation".

Please guide me, how can i fix that issue.

Many Thanks

I was having the same error.

Check your /data/local/tmp/Runtime.apk permissions. If it is 600 as root owner, it won't install. Try changing the shell binary. Adbd Insecure worked for me. Its default writing mode is 666, and then package manager can install the apk.

-rw-rw-rw- 1 root root *.apk [Adbd Insecure]
-rw------- 1 root root *.apk [Rom Root Shell]

Cheers

try to complete uninstall and then install it again. go to adb shell and then remove your application APK from data/data directory. and then install into device.

I think your device is not in the certified devices category..Are you able to install AIR on your device? You won't able to install/debug flex apps if your device is not under certified devices http://www.adobe.com/flashplatform/certified_devices/

try this one,

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, ie:

For physical device:

adt.bat -package -target apk -storetype pkcs12...

For emulator:

adt.bat -package -target apk-emulator -storetype pkcs12...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM