Amazon If you are developing an Android app in Eclipse with a real Android device you may run into the following errors:
Error #1: Inside Eclipse console when you run an Android app
Android Launch!
The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
Please ensure that adb is correctly located at 'C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe' and can be executed.
You are puzzled because adb.exe DOES exist at the said location! Why do you still get this error? Read on to find the solution.
Error #2: Inside Eclipse console or in command prompt
[michael] $ ./adb.exe usb
* daemon not running. starting it now on port 5037 *
ADB server didn't ACK
* failed to start daemon *
error: cannot connect to daemon
I am using Windows 7, Eclipse Indigo, Android 4.1 (API 16)
Read on to see how you can solve these errors!
Solution #1
Suppose your Android application's name is called 'Business Card'. Go to:
Run -> Run Configurations... -> Android Application -> Business Card -> Target -> select 'Always prompt to pick device'
This setting will always prompt you to pick a device or emulator when you run the Android app. It solves my problem!
Solution #2
Go to your process explorer and kill adb.exe; and restart Eclipse. This helps fix this issue for many other people but not me.
adb.exe is a process that gets created when you start Eclipse. Eclipse calls adb.exe to handle any Android related tasks in the background such as installing an APK on your device. adb.exe is usually located at C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe on your Windows machine.
If you have any questions let me know and I will do my best to help you!
One Minute Information - by
Michael Wen
ADVERTISING WITH US - Direct your advertising requests to Michael
ADVERTISING WITH US - Direct your advertising requests to Michael