• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

adb shell - "error: device not found" or "error: device offline"

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I do not own an Android phone and am working exclusively in the Eclipse/emulator environment on my laptop.

When I type in the "adb shell" cmd from the tools directory I get very inconsistent results.
Sometimes it says "error: device not found".
Sometimes it says "error: device offline".
If I start a small application and continue to type in the "adb shell" command until the emulator starts I get the 2 errors I just mentioned in that order and then the "adb shell" command actually works and I can see the "#" prompt, and type in commands such as "ls -l" and see the results.
Then as I'm working in the shell it suddenly ends and I'm back at the Windows prompt.
I am running on Windows XP Pro Version 2002 Service Pack 3.

I would very much appreciate some help with this situation.

Thank You
-Chris
 
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you should get those messages only when there are no instances of emulator or device running and talking with adb. Even with the device/emulator connected, chances are that adb is losing connection with them. Usually, I do one of adb reset/Kill-server/start-server to restore normalcy.
 
Chris Trout
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks very much for your recommendations Monu.
I will try that the next time I have problems with "adb".

I'm also wondering if I have the most current versions of "adb" and the other tools.
Do you know how I can ensure that I do?

-Chris
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Chris Trout wrote:I'm also wondering if I have the most current versions of "adb" and the other tools.
Do you know how I can ensure that I do?


You should periodically run the "android" executable in the tools folder of the SDK. Click on "Available Packages" and then select the Google server - that will start a search for updates. There was an update of the Android 2.2 API just this week, but the last Tools update was a couple of months ago, along with the original Android 2.2 release.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I tried to run the android updater in my android 1.6 installation just now I got:

XML verification failed for http://dl-ssl.google.com/android/repository/repository.xml.
Error: cvc-elt.1: Cannot find the declaration of element 'sdk:sdk-repository'.
Failed to fetch URL http://dl-ssl.google.com/android/repository/repository.xml, reason: Unknown



Is that likely to be a problem on Google's end or am I not holding my mouth right?


Bill
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic