Android 与 adb 的连接已关闭,发生严重错误。您必须重新启动 adb 和 Eclipse。请确保正确定位 adb

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21304324/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 04:19:07  来源:igfitidea点击:

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

androideclipseenvironment-variablesadb

提问by Chintan Khetiya

I know this question is asked multiple time and there are some alternative answer also.So please don't close with some other link because i have added that link below.

我知道这个问题被多次询问,并且还有一些替代答案。所以请不要关闭其他链接,因为我在下面添加了该链接。

[2014-01-23 16:19:44 - adb] ADB server didn't ACK
[2014-01-23 16:19:44 - adb] * failed to start daemon *
....
....
[2014-01-23 14:48:10 - My App] The connection to adb is down, and a severe error has occured.
[2014-01-23 14:48:10 - My App] You must restart adb and Eclipse.
[2014-01-23 14:48:10 - My App] Please ensure that adb is correctly located at 'E:\Chintan Khetiya\Android KIT\adt-bundle-windows-x86_64-20130522\adt-bundle-windows-x86_64-20130522\sdk\platform-tools\adb.exe' and can be executed.

Some of the grate Answer

一些炉排答案

  • Kill from Task Manager- In this case i am not able to delete my process. When i just delete it will automatically create new.(showing me more the one adb in task manger)
  • 从任务管理器中杀死- 在这种情况下,我无法删除我的进程。当我刚刚删除它时,它会自动创建新的。(向我展示更多任务管理器中的一个 adb)

enter image description here

在此处输入图片说明

  • Kill from ADB- This works me some times but I have to do this process at least two or three times. So at least i have to restart my eclipse two or three times minimum and its very time consuming.
  • 从亚行杀死- 这有时对我有用,但我必须至少执行此过程两到三次。所以至少我必须重新启动我的日食至少两到三次,而且非常耗时。

enter image description here

在此处输入图片说明

Finally I am looking for some solution in which i can solve this issue because i am facing this issue at least four times in a day so i am irritate now to restart again and again. I am wasting my 1 hours for this issue in a day.

最后,我正在寻找一些可以解决这个问题的解决方案,因为我一天至少要面对这个问题四次,所以我现在很恼火,一次又一次地重新启动。我在一天中为这个问题浪费了 1 个小时。

Anyone have some permanent solution for my issue.?

任何人都对我的问题有一些永久的解决方案。?

I don't know why this error showing me in console.

我不知道为什么这个错误会在控制台中显示我。

System Requirements:

系统要求:

  • Operating System - Windows - 7
  • Processor - Core 2 Duo
  • RAM - 4 GB
  • Android SDK - Up to - 4.4.2 - 19 API level (All most latest)
  • 操作系统 - Windows - 7
  • 处理器 - Core 2 Duo
  • 内存 - 4 GB
  • Android SDK - 最高 - 4.4.2 - 19 API 级别(所有最新版本)

Environment Path:

环境路径:

E:\Chintan Khetiya\Android KIT\adt-bundle-windows-x86_64-20130522\adt-bundle-windows-x86_64-20130522\sdk\platform-tools;
E:\Chintan Khetiya\Android KIT\adt-bundle-windows-x86_64-20130522\adt-bundle-windows-x86_64-20130522\sdk\tools  

Thank you.

谢谢你。

回答by Harshal Kalavadiya

I Face this problem many time i solve in my way like this and it is working

我多次遇到这个问题,我以我的方式解决这个问题,它正在工作

  • First of all Close your eclipse .
  • Then End Process of adb.exe from Task Manager.
  • Then in command line go to your directory of platform-tools like

    C:\AndroidSetup\sdk\platform-tools>

  • Then write following command step by step

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

  • After successfully message come your adb is running now .

  • Now you can start your eclispe your.

  • Hope your adb is runnig now.
  • 首先关闭你的 eclipse 。
  • 然后从任务管理器结束 adb.exe 的进程。
  • 然后在命令行中转到您的平台工具目录,例如

    C:\AndroidSetup\sdk\platform-tools>

  • 然后一步一步写下下面的命令

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

  • 成功消息后,您的 adb 现在正在运行。

  • 现在你可以开始你的 eclispe 你的了。

  • 希望你的 adb 现在正在运行。

回答by cnuis2cool

Below steps worked for me.

以下步骤对我有用。

  1. Close the Eclipse if running
  2. Go to the Android SDK platform-tools directory in Command Prompt
  3. Go to Tak manager and kill adb.exe
  4. From command prompt type adb start-server
  1. 如果正在运行,请关闭 Eclipse
  2. 转到命令提示符中的 Android SDK platform-tools 目录
  3. 转到 Tak manager 并杀死 adb.exe
  4. 从命令提示符键入 adb start-server

If No error message is thrown while starting ADB server, then adb is started successfully.

如果启动 ADB 服务器时没有抛出错误消息,则表示 adb 启动成功。

Now you can start Eclipse again. Restart phone.

现在您可以再次启动 Eclipse。重启手机。

回答by vbijoor

Along with the above all suggested answer try this one also, it worked for me

除了以上所有建议的答案,也试试这个,它对我有用

copy the hprof-conv.exe from C:\adt\sdk\tools to C:\adt\sdk\platform-tools and copy the adb.exe from C:\adt\sdk\tools to C:\adt\sdk\platform-tools

将 hprof-conv.exe 从 C:\adt\sdk\tools 复制到 C:\adt\sdk\platform-tools 并将 adb.exe 从 C:\adt\sdk\tools 复制到 C:\adt\sdk\平台工具

回答by Iman Marashi

Ok I solved my issue. I go to Task Manager in windows7 -> processes -> selected the adb.exe -> End Process. After that I go to cmdprompt and type adb start-server. This time adb statred succefully. I run eclipe and it was showing no error.

好的,我解决了我的问题。我在windows7 -> processes -> selected the adb.exe -> End Process. 之后我去cmd提示并输入adb start-server. 这次 adb statred 成功了。我运行 eclipe,它没有显示任何错误。

回答by Lalit

I had face this problem and got solution too. Follow these steps after close your adt -

我也遇到过这个问题并得到了解决方案。关闭广告后按照以下步骤操作 -

1.Re install javaI will suggest jxpiinstall to be install

1.重新安装java我会建议安装jxpiinstall

2. Execute that file adb.exe

2. 执行该文件 adb.exe

3. Set the envirnoment path again

3.再次设置环境路径

4. And Here you can have your working adt

4. 在这里你可以有你的工作广告

I hope this will help you.

我希望这能帮到您。

回答by sachin10

add the path to SDK tools and platform tools in your classpath from Environment Variables. Then restart Eclipse.

在环境变量的类路径中添加 SDK 工具和平台工具的路径。然后重新启动 Eclipse。

回答by Aju

Kill adb.exefrom task manager and restart Eclipse. It worked for me.

adb.exe从任务管理器中杀死并重新启动 Eclipse。它对我有用。

回答by Hassan

  • Close your Eclipse
  • Go to your adb.exe in my case it is located at C:\Program Files (x86)\Android\android-sdk\platform-tools
  • click on adb.exe
  • Start Eclipse and Happy Coding
  • 关闭你的 Eclipse
  • 在我的情况下,转到您的 adb.exe,它位于 C:\Program Files (x86)\Android\android-sdk\platform-tools
  • 点击 adb.exe
  • 启动 Eclipse 和快乐编码