简体   繁体   English

adb服务器已过期。 kill ...无法绑定'tcp:5037'ADB服务器没有确认*在ubuntu 14.04 LTS中无法启动守护进程*

[英]adb server is out of date. killing… cannot bind 'tcp:5037' ADB server didn't ACK * failed to start daemon * in ubuntu 14.04 LTS

I could not run the android application never on my laptop. 我无法在我的笔记本电脑上运行Android应用程序。 Eclipse gives same error constantly, that is "ADB server didn't ack" Eclipse不断给出相同的错误,即“ADB服务器没有确认”

When I manage to start adb server and re-open eclipse, as soon as I run the android application, same error comes to console; 当我设法启动adb服务器并重新打开eclipse时,只要我运行android应用程序,同样的错误就会出现在控制台上; ADB server didn't ack. ADB服务器没有确认。

Could you give an idea except restarting adb 你可以提出一个想法,除了重新启动adb

You need to set the path of your SDK's adb into Genymotion. 您需要将SDK的adb路径设置为Genymotion。 By default, Genymotion uses its own ADB tool (for many reasons). 默认情况下,Genymotion使用自己的ADB工具(出于多种原因)。 If the both binaries are not compatible (if your Android SDK platform tools or Genymotion has not been updated for a while) this problem happens. 如果两个二进制文件不兼容(如果您的Android SDK平台工具或Genymotion暂时没有更新),则会出现此问题。

To solve it you can define a specific one from the Android SDK. 要解决此问题,您可以从Android SDK中定义特定的一个。 To specify a custom ADB tool: 要指定自定义ADB工具:

  1. Open Genymotion > Settings > ADB. 打开Genymotion>设置> ADB。
  2. Check Use custom Android SDK tools. 选中使用自定义Android SDK工具。
  3. Specify the path to the Android SDK by clicking Browse. 单击“浏览”指定Android SDK的路径。
  4. Click OK. 单击确定。

update the adb to 1.0.32 if you have 1.0.31 or lower 如果您有1.0.31或更低,请将adb更新为1.0.32

adb version
Android Debug Bridge version 1.0.31
wget -O - https://skia.googlesource.com/skia/+archive/cd048d18e0b81338c1a04b9749a00444597df394/platform_tools/android/bin/linux.tar.gz | tar -zxvf - adb
sudo mv adb /usr/bin/adb
sudo chmod +x /usr/bin/adb
adb version
Android Debug Bridge version 1.0.32

for me the problem was that I am trying to use 2 adb processes 对我来说问题是我正在尝试使用2个adb进程

sudo apt-get remove adb android-tools-adb android-tools-fastboot

then go to your sdk and run ./adb start-server 然后转到你的sdk并运行./adb start-server

Just Try this out !!! 试试吧!

Issue kill and start command in \\platform-tools\\ 在\\ platform-tools中发出kill和start命令

C:\sdk\platform-tools>adb kill-server
C:\sdk\platform-tools>adb start-server

Go to your specified sdk in this case here i have use C:\\sdk but you must go the place where SDK and kill servers. 在这种情况下转到你指定的sdk这里我使用C:\\ sdk但你必须去SDK和杀死服务器的地方。

Let me know if it works. 如果有效,请告诉我。

Sometime, like it or not. 有时候,喜欢或不喜欢。 The command "adb kill-server" have not effect. 命令“adb kill-server”无效。

So, please try other way 所以,请尝试其他方式

taskkill /f /im "adb.exe"
adb start-server
timeout 5
adb devices
pause

Copy it to notepad and save them with extension is ".bat" 将其复制到记事本并保存扩展名为“.bat”

ex: re-start.bat 例如:重新启动.bat

Now, you can restart adb very quickly by double click to file !!! 现在,您可以通过双击文件快速重启adb!

For users of Genymotion, just do this: 对于Genymotion的用户,只需执行以下操作:

ps aux | grep adb

Then look at /home/root/Android/Sdk/platform-tools/adb . 然后看看/ home / root / Android / Sdk / platform-tools / adb

Copy and paste it to your terminal: 将其复制并粘贴到您的终端:

exa:-   /home/buffer/Android/Sdk/platform-tools/adb   devices

Hopefully you will see: 希望你会看到:

your ip address:5555    device

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM