adb error: unable to parse adb version - android

Is there anyone who has had any problems using WIN7 and Eclipse?
Everytime Eclipse starts this error always comes up: UNABLE TO PARSE ADB VERSION
If you try and run/debug the app from within WIN7,
The connection to adb is down, and a severe error has occured.
[2010-01-29 19:00:17 - app name] You must restart adb and Eclipse.
[2010-01-29 19:00:17 - app name] Please ensure that adb is correctly
located at 'C:\Android\tools\adb.exe' and can be executed.
Adb is located at C:\Android\tools\adb.exe, and can be
executed from the cmd line. Tried quitting eclipse and WIN7 and
restarted. Ran adb kill-server, adb start-server
daemon not running...
starting it now.
daemon started successfully.
start eclipse, and then that's when the error comes up. This is
driving us crazy.
So, if by chance there is anyone else using WIN7 professional version
to develop on and has encountered this problem with adb and found a solution, please post it.

I turned off Defense module in COMODO and the same problem was fixed.

I run Win7 Ulitmate with Eclipse Indigo 7.1 and Android SDK R15 for Windows. This fix should pertain only to those who have comodo Internet Security installed.
Turning off the Defense module in Comodo worked also but instead of turning off the Defense module in Comodo, I added C:\Program Files\Android\android-sdk-windows\platform-tools\adb.exe to safe programs. adb.exe was in the Sandbox and was marked as unsafe.

Allowing ADB.exe through Windows Firewall solved this error on my machine.

Related

Android Studio - Unable to open debugger port: java.io.IOException

I am stuck in a problem here.
I cannot attach debug using Android Studio 3.5.1.
Its keeping showing me the message "Error running 'Android Debugger (8600)': Unable to open debugger port (localhost:8600): java.io.IOException"
I tried a lot of things like:
adb reset
invalidate
restart windows
reinstall android studio
and none of them works.
And I cannot find Enable ADB Integration on this version.
Anyone knows how to fix it?
EDIT
Debugging with emulator is working with all versions.
Debugging with devices is working only with devices with Android 9.0+
Kill and start adb didn't work.
I dont think its a local problem because its happen with a lot of people here. Its seems to be a project problem
You might check this 3 things:
1.
Youre not running a not debuggable version.
android:debuggable="false" in Android Manifest
2.
In Android studio you re not building a release version
Check in Build variants in bottom left corner.
3.
If nothing works use Troubleshoot device connections
Tools -> Connection Assistant
or older version
Tools -> Troubleshoot device connections
And try out the helper page from google (seems for older versions)
https://developer.android.com/studio/run/device#assistant
Try this:
adb kill-server
adb start-server
adb usb
For linux, e.g., ubuntu: start all commands with sudo like this:
sudo adb kill-server.
its your connection issue, cant find your device DNS.
what is your OS ?
In windows:
you must go to network and find duplicate dns and clear it (Search for
it)
In mac:
you must kill adb or delete that and run a new version
last hit is Update emulator in sdk
.First you need to check your build.gradle(app) file , and ensure that your build is debuggable.
.If debuggable then you need to check adb is working or not in your system, you can
check by just press 'adb' .
if its working then check devices by 'adb devices', it will show all connected devices.
add kill-server then enter and adb start-server
Try this. I have had luck with this approach when I run into problems with adb.
You can check if the device is recognised or not using
adb devices
If it is indeed recognised you may try to kill adb and start it again
add kill-server
adb start-server

Daemon not started in Android Studio

Please don't mark this as a duplicate question.
When i m trying to run app in emulator or in real device everytime it throws an exception
Unable to connect to adb. Verify that your localhost entry is pointing to ip4 or ip6 respectively Android
For getting solution i dig google and tried the solution using
adb tcpip 5555
adb connect 127.0.0.1:5555
But every time it catch the same exception.
daemon not running; starting now at tcp:5037
adb F 05-03 12:32:21 9776 7156 main.cpp:45] cannot open C:\Users\admin\AppData\Local\Temp\adb.log: Permission denied
This application has requested the Runtime to terminate it in an unusual way.
Advanced help would be appreciated!
Open command Prompt use following commands
adb kill-server
adb start-server
adb devices // it will shows the device id if its connect success
if not showing the device restart android studio and mobile then execute the command again it will work
Finally i found an answer.
There was my silly mistake. While i was set JAVA_HOME path by
C:\Program Files (x86)\Java\jre1.8.0_211\bin
So just i needed to remove \bin. The correct path is
C:\Program Files (x86)\Java\jre1.8.0_211
Further i started Android Studio as Run as Administrator.
First, try running adb.exe in at the sdk/platform-tools. If it's not working then probably your adb.exe is broken. Then you need to download the sdk again or you can replace the platform-tools folder from some another pc. I also face that problem with Android Studio 3.4.

ADT keeps crashing all the time

I have problem in launching the adb or running my application my ADT keeps crashing or keeps not responding i already tried some ADB KILL-SERVER,ADB START-SERVER but it's not working i also tried to put the full path of platform tools in the environment variables but no lucks.I also tried to manual kill the adb.exe in task manager and restart my ADT but still it will hang or keeps not responding.I am using windows 7 32bit.
Thank you in advance.
Try to update your Android SDK tools with SDK manager. Make sure that no other process is running on port 5037. ADB runs on port 5037 by default.
Post the error messages that you get when you launch adb from command prompt.

Eclipse Android Adb failure

I'm having problems starting my adb in eclipse and looked for all answers here for this issue such as stopping an antivirus called COMODO Defense+ which i actually don't have or copying files from \platform-tools to \tool........ but non worked.
I get the following erros when ever reseting adb or trying to run my android application:
[2014-04-07 16:58:55 - Trucks] The connection to adb is down, and a severe error has occured.
[2014-04-07 16:58:55 - Trucks] You must restart adb and Eclipse.
[2014-04-07 16:58:55 - Trucks] Please ensure that adb is correctly located at 'C:\Users\........\adb.exe' and can be executed.
and the adb is directed in this directory for sure.
Also i get pop messages:
Adb failed to restart!
Make sure the plugin is properly configured.
and
Attempting to restart adb, but version check failed!
I had a randsome virus a while ago that locked my files, but i have unlocked them all now, could the virus had done something with eclipse that changed something related to the Adb?
I've had this problem before
at first kill adb.exe from task manager;
then turn off antivirus firewall - (or Put adb.exe in extensions).
at last start adb.exe.
try it , i hope it work;

ADB not responding. You can wait more, or kill "adb.exe" ... windows 8

When I try to test my Android application with an android emulator as always I now suddenly get an error message. I'm working with Windows 8. So far I tried the following things which unfortunately could not solve the problem:
reinstalling eclipse with android adt
reinstalling java
installing "android studios" first solved the problem but after one day mysteriously also here adb, stopped working with the error message given in the title " ADB not responding ...
furthermore I unsuccessfully tried out some advice from Mr. Google:
Stopping adb.exe via task-manager and restarting eclipse / android studios
"adb kill-server" then "start-server" via command prompt
setting the path to adb.exe as an environment variable
switching off any antivirus or firewall
starting the IDEs as an administrator
updating the IDEs
The only thing I can remember doing which may have destroyed adb on my computer for all times: I connected my motorola smartphone to my laptop and installed the motorola usb drivers but as I said the adb also won't work with the emulator.
Any help would be kindly appreciated. The issue bothers me for more than an entire day now. Maybe someone had similar problems on Windows 8 ?
On OSX helped:
Close Android Studio
Kill all processess using 5037 port
sudo lsof -i |grep 5037
sudo kill PID_NUMBER
Run adb devices from console
adb devices
Meanwhile the emulator is working again. I cannot definetly say what solved the problem. What It could be a combination of two things:
Deleting the hidden ".android" folder under C:\Users...
(Probably there was some malfunctioning automatically created code)
Deleting and recreating the Path variable to the folder with adb.exe ( ...\sdk\platform-tools\;)
Finally it could be a Windows 8 issue which I don't understand.
Try this,
Open a command prompt with administration permission and type
netsh interface tcp set global autotuninglevel=disabled
This worked for me
Edit: Windows only
Kill the adb.exe with a command prompt. Open a command prompt were your adb.exe is located and type
adb kill-server
Maybe HTTP Proxy blocked the localhost 127.0.0.1:5037
If you have config the HTTP Proxy, make sure to exclude the localhost like picture below
Also, port can also be blocked by the firewall and anti-virus firewall, please notice as well.
Try this,
at the prompt try adb kill-server
Start one of your AVDs
at the prompt try adb root
The prompt should say adbd is already running as root.
That should fix it.
In case it helps anyone else, for me the problem was related with the USB hub that the tablet was plugged into on the computer (unplugging the webcam which was in use fixed it).
I got the same error. Don't worry. I have an solution. Go to Task Manager. Kill the process called adb.exe. You will find 2 or 3 processes. Kill all of them. You are done. It will work.
I have the same problems. Verify port 5037 is free and ports 5555 to 5585 are available and never used by another process.
"ADB server sets up connections to all running emulator/device instances. It locates emulator/device instances by scanning odd-numbered ports in the range 5555 to 5585"
FROM: http://developer.android.com/tools/help/adb.html
To find out which process is listening on a port on Windows yo can use:
C:> netstat -an -o
FROM: How can you find out which process is listening on a port on Windows?
I had the same problem, here is my simple fix:
-Go to task manager in windows, look for adb.exe, and kill it
-Go to command prompt, and tap adb devices ==> it will automaticaly start adb daemon
I finally just restarted the computer, and that solved the issue for me.
Uninstall HTC Sync. Or disable it somehow.
Try to open adb from command prompt from directory location as <sdk>\platform-tools,
If adb file is missing try to re-install Android SDK with latest version,
And try to run again..
I think issues will solved, by this procedure.
I saw this on a Mac OS X.
I shut down Android Studio and ran adb get-state in the terminal. When I started Android Studio back up, the warning had gone away.
BTW, I did just try restarting Android Studio without any luck. I am sure a restart of OS would have fixed it too.
The same thing with the Asus Sync utility (with the both our Transformer's 700 and 701).
I think there is a USB-port conflict between ABD driver and Sync utility.
Exit from Sync utility resolve the problem.
Looks like this could be caused by a bunch of different issues. This just happened to me because I had my android phone device plugged in for USB debugging, then after a few hours (and multiple android studio/phpstorm restarts) I had to do unplug the device manually. Things started working again after unplugging.
I have faced this problem few days ago. When I opened my task manager it showing me two adb runnig. It may be because of I am using mobogenie for connecting my android phone for debugging application. This problem is because of moboginie and adt port conflict. then I have followed following procedure to sort out this issue.
!) close eclipse
2) Go to task manager and kill all adb processes.
3) Now go to platform-tools in android sdk
4)press shift+right click mouse and select "open command window here" option
5) type
adb kill-server
adb start-server
6)if server sucessfully started then start eclipse and then connect your phone
(Remember dont connect your phone before starting eclipse)
Following works for me every time:
go to File->Invalidate Caches/Restart
select Invalidate and Restart
And, You are good to go.

Categories

Resources