Android Failed to install HelloWorld.apk on device (null) Error

前端 未结 22 1796
走了就别回头了
走了就别回头了 2020-11-28 23:37

I am new to Android. When I am running my android application in eclipse I am getting these messages in the console:

[2011-03-08 12:57:35 - HelloWorld] ----         


        
22条回答
  •  心在旅途
    2020-11-29 00:06

    @Bolton 's answer worked for me. Some details...

    I got my phone a few weeks ago. I tried the HelloAndroid sample app right away (after installing req'd software, etc.). The app worked in the emulator AND on the phone--right away!

    Shortly after that, I rooted my phone but did not flash any roms or kernels. I was only experimenting on the emulator until yesterday (writing a simple notepad app). When I tried debugging the app on the phone, here's what I observed:

    1. Eclipse console reported the "...failed to install on device...(null)" message. BUT

    2. The HelloAndroid app DID get pushed to the phone! (It appeared in the apps drawer AND I was able to launch it.)

    3. It simply would not launch on the phone from the Eclipse run.

    I searched around here and elsewhere last night (including this thread) with no luck. Finally, I rebooted my phone--which I never tried (doh!) 'cause I didn't think it would make a difference--and the app launched from an Eclipse start!

    Still don't know the cause, but I'll come back here if I figure it out.

提交回复
热议问题