3

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

Vivek
  • 663
  • 2
  • 13
  • 40
  • Please include LogCat logs in your post. LogCat normally prints all the details about installation failures. – inazaruk Jun 01 '11 at 12:20
  • I found a link http://forums.adobe.com/thread/718308 . can i follow that one. I am afraid because i am new with OSX. Please guide. Thanks – Vivek Jun 01 '11 at 12:20
  • Just try it and see if it helps. If not, come back here. If it worked, answer your own question and accept it. – inazaruk Jun 01 '11 at 12:22
  • no it is not working in my case – Vivek Jun 01 '11 at 12:43

4 Answers4

2

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

oxygenpt
  • 368
  • 2
  • 17
1

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 was testing my app on HTC Wild fire which is not listed in adobe certified devices. Now i tested my that app on Android Tablet. It is working fine. Many thanks for you kind support. – Vivek Apr 25 '12 at 12:19
1

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/

hsemar
  • 143
  • 8
0

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...
Tahir Alvi
  • 896
  • 2
  • 14
  • 44
  • how can i provide -target? Please guide the process. Many Thanks – Vivek Jun 02 '11 at 05:57
  • target mean the file that you want to convert into .apk, mostaly i placed file in sdk(folder in andoid sdk) folder for easily path setting. – Tahir Alvi Jun 06 '11 at 07:41
  • i am simply using export release build functionality in Flash Builder to build my application apk. It is also creating apk file so where i will change or how for target. I am not getting that. Please guide. Many thanks for your reply. – Vivek Jun 06 '11 at 10:33
  • If you share the sample code here, then i got the exact error that you are facing, is that feasible? – Tahir Alvi Jun 06 '11 at 11:04
  • hi sir, sorry for delay. I was out of station. Please click on above link to download code zip http://www.mediafire.com/?7jxmx17v31r4y6k – Vivek Jun 13 '11 at 07:33