aspose file tools*
The moose likes Android and the fly likes still stuck with Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "still stuck with "Failed to install HelloAndroid.apk on device" error" Watch "still stuck with "Failed to install HelloAndroid.apk on device" error" New topic
Author

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

Erin Hodgess
Greenhorn

Joined: Jan 01, 2011
Posts: 2
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
Marshal

Joined: Mar 22, 2005
Posts: 42276
    
  64
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


Ping & DNS - my free Android networking tools app
Erin Hodgess
Greenhorn

Joined: Jan 01, 2011
Posts: 2
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
Marshal

Joined: Mar 22, 2005
Posts: 42276
    
  64
That doesn't look like you're using adb directly; have you tried that?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Have you looked at the emulator's log? Perhaps that might give a clue as to why the install failed.


JBoss In Action
Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 629

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.


Life is easy because we write the source code.....
Andrew Peters
Greenhorn

Joined: Jan 31, 2011
Posts: 1
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

Joined: Jul 15, 2008
Posts: 629

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: still stuck with "Failed to install HelloAndroid.apk on device" error