Vivek
Vivek

Reputation: 663

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:

enter image description here

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

Upvotes: 3

Views: 9040

Answers (4)

oxygenpt
oxygenpt

Reputation: 368

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

Upvotes: 2

Dilip Joshi
Dilip Joshi

Reputation: 13

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.

Upvotes: 1

hsemar
hsemar

Reputation: 143

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/

Upvotes: 1

Tahir Alvi
Tahir Alvi

Reputation: 994

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, i.e.:

For physical device:

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

For emulator:

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

Upvotes: 0

Related Questions