ADB failed to start make sure the plugin is properly configured [duplicate] - android

This question already has answers here:
Adb won't start
(21 answers)
Closed 6 years ago.
I have this problem every now and then, it says "ADB server didn't ACK, failed to start daemon".
So First, I followed some instructions to reset the adb in DDMS, AND then it gives me "adb failed to start, make sure the plugin is properly configured".
After reading some other solutions, I kill the adb.exe in my task manager, but it became alive again after 2 seconds.
I have restart my eclipse and pc couple of times, still no luck.
anyone know whats the problem? I am using win8, don't know if it the problem...

You can solve this issue by following below mentioned steps
Go to Task Manager and kill adb.exe from Process tab
Go to DDMS->Devices tab in eclipse and select option Reset adb.
Your emulator will come in Online and can go further.
If this should not work, try restarting Eclipse and the emulator, and try the steps again.

Related

Can't Run my android app. Android Studio shows is as DEAD

I'm starting the android tutorial at udacity. This course consist on creating a weather app sunshine. At the end of lesson 1 when I try to run my app, android studio marked it as DEAD.
I tried all the steps in a similar problem however the problem remain the same. Here is the adb logs:
DeviceMonitor: adb restarted
PropertyFetcher: ShellCommandUnresponsiveException getting properties for device emulator-5554: null
DeviceMonitor: ExecutionException getting info for device emulator-5554
DeviceMonitor: Adb rejected connection to client '14794': closed
Remove your device (Samsung GT-I9060I) from USB.
Close Android Studio.
Open Task Manager and kill all processes named adb.exe.
Open Android Studio and wait until Gradle build is finished.
Connect your device as emulator again.
Run your app.
Btw, I also faced this issue a month ago, and those steps help me.
I actually rebuild my application and it works. I have no explanation . I guess it has something with Android studio.
The ADB still works unstable, and never mind which IDE are used Eclipse or new Android Studio.
The workaround for this is to restart adb.
Type in console:
adb kill-server
adb start-server
* daemon not running. starting it now at tcp:5037 *
* daemon started successfully *
Usually, this is enough condition to solve the issue for some time.

com.android.ddmlib.AdbCommandRejectedException: more than one device [duplicate]

This question already has answers here:
Eclipse detecting the same device multiple times
(4 answers)
Closed 4 years ago.
how to kill and start adb in window 8. i did in linux but do not have any idea in window 8 b'coz i am getting error of
com.android.ddmlib.AdbCommandRejectedException: more than one device. i restart my eclipse , changed my port but it is no working.
just simple delete the adb.exe file running in your Task Manager
I think your question is formed a bit differently, but the exception is the same so if you're facing the same problem I was then refer to this post. Worked for me.
Actually all I had to do was to exit Eclipse and then end adb.exe in Task Manager. Start Eclipse again and voilà, showing only the one device as it should.
You can open comand line, go to sdk/platform-tools folder
(C:\Users\Administrator\AppData\Local\Android\sdk\platform-tools - my path)
and run:
adb kill-server
adb start-server
Same answer if you receive "Offline Device"
Just look at the image, Chuck thanks for help!

Android error : Failed to install : timeout [duplicate]

This question already has answers here:
Android error: Failed to install *.apk on device *: timeout
(8 answers)
Closed 9 years ago.
Failed to install TempDate.apk on device 'emulator-5554': timeout
Got this error while run my android project. solved by this link Android error: Failed to install *.apk on device *: timeout
I go step by step but still having the problem..!!
Uninstall your application from your device and then try to run. If the problem continues I think the problem is in your device. Just close and restart. Again it continues then restart your adb and your eclipse.
I hope this will help you.
Try changing the ADB connection timeout. I think it defaults that to 5000ms and I changed mine to 10000ms to get rid of that problem. If you are in Eclipse, you can do this by going through Window -> Preferences and then it is in DDMS under Android.
Go to command Prompt and type
adb kill-server
press Enter
Again type
adb start-server
press enter
now clear your project and run....

Emulator Timeout Error Message while Installing .apk [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Android error: Failed to install *.apk on device *: timeout
keep getting error messages when I try to launch any mobile app with android. These errors are not predictable - sometimes (like once out of 10 times) a miracle happens and everything works. But most of the time I get this error:
[ERROR] C:\Program Files\Titanium Developer\android-sdk-windows\tools\adb.exe
error: protocol fault (no status)
followed by this error later on:
[DEBUG] Waiting for device to be ready ...
[TRACE] adb devices returned 0 devices/emulators
......
[ERROR] Timed out waiting for emulator to be ready,
you may need to close the emulator and try again
The emulator starts and I get the locked screen but somehow the connection with it is lost.
I tried launching the emulator separately from a batch file as someone else suggested before I open the ti developer but I get the same errors.
Even if it runs correctly once, if I make changes and want to relaunch (without stopping or closing the emulator) I always get the errors above. I thought we are supposed to be able to keep reusing the emulator once it's up and running but for me it never works like that.
When i try to run from eclipse it used to give the following message Failed to install Demo.apk on device 'emulator-5554': timeout
I want to run the same application without killing adb server or without closing the emulator again.
Please any help would be appreciated lot!!!!!!!!!
That's because the default ADB idle time out is 5000ms.
Take Window -> Preferences -> Android -> DDMS. Increase your ADB time out. This will solve your problem
Delete the .android folder from your home folder of user after closing eclipse and emulator and then restart and try. It should resolve your problem. After deletion you will have to set the sdk of adt plugin.

Launch error: Failed to connect to remote VM [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Eclipse Error: “Failed to connect to remote VM”
I am using Eclipse to dip my toe into Android development. All going well but recently, I am not able to use debug anymore. When I click 'Debug As' - 'Android Application', app builds ok, installs ok but Android device (either actual device or emulator, it makes no difference) waits with 'Waiting For Debugger' with a single 'Force Close' button. In the console, I get something like:-
[2011-08-26 11:59:59 - Sunrise] Starting activity
com.sr.sunrise.Sunrise on device 3833CB14F52C00EC [2011-08-26 11:59:59
- Sunrise] ActivityManager: Starting: Intent {
act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
cmp=com.sr.sunrise/.Sunrise } [2011-08-26 12:00:00 - Sunrise]
Attempting to connect debugger to 'com.sr.sunrise' on port 8614
[2011-08-26 12:00:00 - Sunrise] Launch error: Failed to connect to
remote VM
I have followed many searches (including this one
StackOverflow.com link
and this
StackOverflow.com link2
and I have tried many suggestions but nothing has fixed this problem yet.
Can anyone help me as this is now stopping me from creating my masterpiece ;-)
This just worked for me:
Close Eclipse.
Remove USB.
Go to task manager, and delete all 'eclipse.exe' (in my case I had 4-5 instances).
Also delete 'adb.exe'.
Restart Eclipse.
Reconnect USB.
Maybe this will work for others who have the same problem.
THIS IS PRETTY MUCH THE NUCLEAR OPTION...
I had the same problem on my macbookpro, I don't know exactly how to fix it data loss, but on my system, I "rm -r ~/.android", recreated my devices, and I can again debug.
It is important to note that this is destructive in that the .android directory is where the android emulator is saving the state of the devices I am emulating.
I think the root cause of the problem had something to do with an old android SDK that I removed from my system when I downloaded the android-sdk_r15-macosx.zip leaving some cruft around in the .android directory.

Categories

Resources