• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

still stuck with "Failed to install HelloAndroid.apk on device" error

 
Erin Hodgess
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all!

I've been trying unsuccessfully all day to run the Hello Android program from the Hello Android book.

I keep getting the "Failed to install HelloAndroid.apk on device " error

I've reinstalled Eclipse, added the tools to my path, restarted Eclipse.

Any other suggestions would be much appreciated.

Thanks,
Erin

 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried using the SDK tools directly to install the package, without Eclipse being involved? http://developer.android.com/guide/developing/tools/adb.html
 
Erin Hodgess
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the whole ugly mess:

[2011-01-02 03:02:37 - HelloAndroid3] ------------------------------
[2011-01-02 03:02:37 - HelloAndroid3] Android Launch!
[2011-01-02 03:02:37 - HelloAndroid3] adb is running normally.
[2011-01-02 03:02:37 - HelloAndroid3] Performing org.example.hello.Hello activity launch
[2011-01-02 03:02:37 - HelloAndroid3] Automatic Target Mode: launching new emulator with compatible AVD 'em23'
[2011-01-02 03:02:37 - HelloAndroid3] Launching a new emulator with Virtual Device 'em23'
[2011-01-02 03:02:50 - HelloAndroid3] New emulator found: emulator-5554
[2011-01-02 03:02:50 - HelloAndroid3] Waiting for HOME ('android.process.acore') to be launched...
[2011-01-02 03:09:47 - HelloAndroid3] HOME is up on device 'emulator-5554'
[2011-01-02 03:09:47 - HelloAndroid3] Uploading HelloAndroid3.apk onto device 'emulator-5554'
[2011-01-02 03:09:48 - HelloAndroid3] Installing HelloAndroid3.apk...
[2011-01-02 03:12:16 - HelloAndroid3] Failed to install HelloAndroid3.apk on device 'emulator-5554!
[2011-01-02 03:12:16 - HelloAndroid3] (null)
[2011-01-02 03:12:17 - HelloAndroid3] Launch canceled!

 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That doesn't look like you're using adb directly; have you tried that?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked at the emulator's log? Perhaps that might give a clue as to why the install failed.
 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you looked at the emulator's log? Perhaps that might give a clue as to why the install failed.


Yes, Logcat output will help us to find out where is actual problem.
 
Andrew Peters
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had this error message but was still able to find my HelloAndroid app listed in the available apps in the emulator by clicking on the launch button.
 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Andrew Peters wrote:I had this error message but was still able to find my HelloAndroid app listed in the available apps in the emulator by clicking on the launch button.


If application is installed already in your device then you can't install the same file again. Are you sure you are getting the same error message(i.e. Failed to install HelloAndroid.apk on device) or the error is "Application already exist". If you got second error then uninstalled application first and then install it again. Or you may use command as ->
adb install -l -r ApplicationName.apk
 
Goerge Longo
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a common error, just Restart ADB from Dmoz
refer to this tutorial for How to restart ADB or how to solve failed to install .apk
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic