aspose file tools*
The moose likes Android and the fly likes adb shell - Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "adb shell - "error: device not found" or "error: device offline"" Watch "adb shell - "error: device not found" or "error: device offline"" New topic
Author

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

Chris Trout
Greenhorn

Joined: May 05, 2010
Posts: 16
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
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

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.


[List of FAQs] | [Android FAQ] | [Samuh Varta]
Chris Trout
Greenhorn

Joined: May 05, 2010
Posts: 16
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
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41885
    
  63
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.


Ping & DNS - my free Android networking tools app
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12789
    
    5
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
 
Don't get me started about those stupid light bulbs.
 
subject: adb shell - "error: device not found" or "error: device offline"