Issue
When I try run my Android application I get this exception:
Error while waiting for device: java.lang.RuntimeException: Unable to create Debug Bridge: Unable to start adb server: error: could not install smartsocket listener: cannot bind to 127.0.0.1:5037: An attempt was made to access a socket in a way forbidden by its access permissions. (10013) could not read ok from ADB Server * failed to start daemon * error: cannot connect to daemon 'C:\Users\XXX\AppData\Local\Android\Sdk\platform-tools\adb.exe,start-server' failed -- run manually if necessary
So I try do it manualy with these commands:
adb kill-server
- response: * server not running *
adb start-server
- response was next exception:
*daemon not running. starting it now on port 5037 * error: could not install smartsocket listener: cannot bind to 127.0.0.1:5037: An attempt was made to access a socket in a way forbidden by its access permissions. (10013) could not read ok from ADB Server
*failed to start daemon * error: cannot connect to daemon
I looking for adb process in my task manager but not running. Any ideas? Thanks.
Solution
If you have the situation where this keeps happening and killing and restarting still doesn't work it may be a problem with your adb installation. I had to reinstall adb to resolve this problem:
- Reboot to ensure no instances of adb is running
- Launch SDK Manager in Android Studio: Tools->Android->SDK Manager
- Select the SDK Tools tab
- Deselect Android SDK Platform-Tools item
- Hit Apply
- Check the on screen logs to make sure the un-installation succeeded and that the SDK/platform-tools folder is empty.
This should completely remove adb from your SDK.
- Now re-select the Android SDK Platform-Tools item
- Hit apply
- Check the on screen logs that installation was successful.
I suspect in my case an update of the platform tools had failed perhaps because it failed to kill a running adb.exe and only a partial update was applied resulting in an unstable adb installation.
Answered By - Paul Netherwood
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.