简体   繁体   English

Android adb无法启动

[英]Android adb doesn't start

I'm using android adt bundle and installed Android 4.4.2(API 19) to my computer. 我正在使用android adt bundle并在我的计算机上安装了Android 4.4.2(API 19)。 Following is a screen shot of my installed packages. 以下是我安装的软件包的屏幕截图。

在此输入图像描述

Once I'm going to run a android application using my emulator(I created a emulator using AVD Manager) it gives me the error 一旦我要使用我的模拟器运行一个Android应用程序(我使用AVD管理器创建了一个模拟器)它给了我错误

[2014-03-12 23:12:58 - DemoAndroid] The connection to adb is down, and a severe error has occured.
[2014-03-12 23:12:58 - DemoAndroid] You must restart adb and Eclipse.
[2014-03-12 23:12:58 - DemoAndroid] Please ensure that adb is correctly located at 'C:\adt-bundle-windows-x86-20131030\sdk\platform-tools\adb.exe' and can be executed.

I double checked the C:\\adt-bundle-windows-x86-20131030\\sdk\\platform-tools\\adb.exe location and there exists a adb.exe. 我仔细检查了C:\\ adt-bundle-windows-x86-20131030 \\ sdk \\ platform-tools \\ adb.exe位置,并且存在adb.exe。

Once I'm running the eclipse, it doesn't start the adb.exe ( I checked it in task manager ). 一旦我运行eclipse,它就不会启动adb.exe(我在任务管理器中检查过它)。 I had to manually start it as described in this post, "The connection to adb is down, and a severe error has occured." 我不得不按照这篇文章中描述的那样手动启动它, “与adb的连接已关闭,并且发生了严重错误。”

Once I'm restarting the adb.exe using command prompt, I get following output in the cmd. 一旦我使用命令提示符重新启动adb.exe,我会在cmd中获得以下输出。

* daemon not running. starting it now on port 5037 *
* daemon started successfully *

I stopped COMODO antivirus and teamviewer, and also stopped real time protection in my Avira antivirus. 我停止了COMODO防病毒和团队查看器,并且还在我的Avira防病毒软件中停止了实时保护。 But none of this worked. 但这一切都没有奏效。

These are the steps I took to overcome the problem and none of them worked 这些是我为克服这个问题而采取的步骤, 但没有一个能够奏效

  • I copied "platform-tools" content to the "tools" folder 我将“platform-tools”内容复制到“tools”文件夹中
  • killed adb and restarted adb( Got the output as described above) 杀死adb并重启adb(得到如上所述的输出)
  • Added platform-tools path to the system variable 添加了系统变量的平台工具路径

And BTW I cannot open the android sdk from eclipse( But I can open it by going to the android sdk folder and clicking on "SDK Manager.exe"). 顺便说一下,我无法从eclipse打开android sdk(但是我可以通过转到android sdk文件夹并点击“SDK Manager.exe”打开它)。 But I can start the AVD Manager using eclipse. 但我可以使用eclipse启动AVD Manager。

Any help would be greatly appreciated since I'm stuck in this for weeks now.. 任何帮助将非常感激,因为我已经坚持了几个星期..

Thanks & Regards! 感谢和问候!

I also faced this problem. 我也遇到过这个问题。 You can do one thing. 你可以做一件事。 I am having linux installed on my system. 我在我的系统上安装了linux。 In linux, open android-sdk folder. 在linux中,打开android-sdk文件夹。 In that open tools folder, then open monitor named file as 'Run in Terminal' option. 在该打开工具文件夹中,将名为file的监视器打开为“在终端中运行”选项。 It will open 'Android Device Monitor'. 它将打开'Android Device Monitor'。 Here you can add emulator of different configuration. 在这里,您可以添加不同配置的模拟器。 Now you have to restart the eclipse. 现在你必须重启日食。 After that avd's will be shown and you will start them. 在那之后,avd将被展示,你将启动它们。 This problem occurred when you update the sdk to android 4.4.2. 将sdk更新到android 4.4.2时发生此问题。

I have this problem for few days. 我有这个问题好几天了。 Finally, I found that the adb.exe was added in "unrecognized files" in COMODO antivirus --> move it to trusted files will fix the problem. 最后,我发现adb.exe被添加到COMODO防病毒软件中的“无法识别的文件”中 - >将其移动到可信文件将解决问题。

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

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