• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That doesn't look like you're using adb directly; have you tried that?
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 633
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 633
Android Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic