ADB未启动(无错误消息) [英] ADB is not starting (no error message)

查看:141
本文介绍了ADB未启动(无错误消息)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行adb。当我运行时: adb start-server挂起一段时间,然后没有消息。

I am trying to run adb. When I run : "adb start-server" it hangs during a while, and then no message.

在此之后,命令 adb get-state收到答案错误:协议错误(无状态)
如果我运行了然后 adb kill-server,答案是 *服务器未运行*

After that the command "adb get-state" receive the answer "error: protocol fault (no status)" If I run then "adb kill-server" the answer is "* server not running *"

我是使用Windows7。管理员已将我的权限提升为本地管理员,但没有解决任何问题。

I am using windows 7. An admin has elevated my rights to local admin, but it did not solve anything.

我使用资源监视器来验证是否有其他应用程序正在使用adb的端口,但事实并非如此。

I used resources monitor to verify if any other app is using the ports of adb, but it is not the case.

位于 https://developers.google.com/chrome- developer-tools / docs / remote-debugging
,步骤3指示设置>高级> DevTools下的启用USB Web调试。
但是在我的测试电话上,chrome设置中没有高级类别。我找不到安装的chrome的版本。

on https://developers.google.com/chrome-developer-tools/docs/remote-debugging the step 3 indicates to "Enable USB Web debugging" under Settings > Advanced > DevTools. But on my test phone, there is no "advanced" category in the chrome settings. I couldn't find out either what is the version of chrome installed.

在网络上的某个地方,我看到了将 tmp / android /的权限更改为允许阅读&为所有用户编写,但在C:\Users\me\AppData\Local\Android\android-sdk\temp中没有android文件夹。

Somewhere on the web I saw a suggestion to change the rights of "tmp/android/" to allow read & write for all users, but in C:\Users\me\AppData\Local\Android\android-sdk\temp there is no android folder.

所以我现在非常绝望,任何帮助将不胜感激。

So I am pretty desperate now, any help would be immensely appreciated.

谢谢

-olivier

编辑1 :我找不到启用USB Web调试,因为它是 Android浏览器而不是chrome(有点可笑是)。我不知道。使用安装了适当Chrome的其他设备,我可以在此处检查该选项,但是adb在启动时仍然崩溃。

EDIT 1: I could't find "Enable USB Web debugging" because it was "android browser" and not chrome (a bit ridiculous yes). I did not know that. Using another device with a proper chrome installed, I could check the option there, but adb is still crashing at startup.

编辑2 :我疯狂猜测平台工具文件夹存在写入问题。
因此,我使用sdk管理器卸载了所有内容,然后删除了整个adt-bundle-windows-x86_64。然后我在c:上将其解压缩到其他位置。奇怪的是,当我启动SDKManager.exe时,已经将几个软件包标记为已安装:

EDIT 2: I did a wild guess that there was some Write issue with the platform-tools folder. So I uninstalled everything using the sdk manager, I deleted the whole adt-bundle-windows-x86_64. Then I unzipped it elsewhere, on c:. Strange thing is, when I launch SDKManager.exe, several packages are already marked as installed :


  • Tools> Android SDK Tools

  • 工具> Android SDK Plateform-tools

  • Android 4.2.2> SDK Plateform

  • Android 4.2.2> ARM EABI v7a系统映像

  • 其他> Android支持库

  • Tools>Android SDK Tools
  • Tools>Android SDK Plateform-tools
  • Android 4.2.2>SDK Plateform
  • Android 4.2.2>ARM EABI v7a System Image
  • Extras>Android Support Library

我尝试再次卸载它们,删除文件夹,再次解压缩并重新安装,但结果仍然相同。似乎以某种方式,它安装错误,但拒绝正确卸载。任何人都知道如何强制解除关系化吗?

I tried deinstall them again, delete the folder, unzip again and re-install, but still same result. It seems that somehow, it is installed wrong, but refuses to uninstall properly. Anyone knows how to force the unistallation ?

EDIT 3 :使用set ADB_TRACE = 1后,adb启动服务器的
输出

EDIT 3 : output of adb start-server after having used set ADB_TRACE=1

C:\adt-bundle-windows-x86_64-20130219\sdk\platform-tools>adb start-server
system/core/adb/adb.c::main():Handling commandline()
system/core/adb/adb_client.c::_adb_connect():_adb_connect: host:version
system/core/adb/sysdeps_win32.c::socket_loopback_client():socket_loopback_client: port 5037 type tcp => fd 100
system/core/adb/transport.c::writex():writex: fd=100 len=4: 30303063 000c
system/core/adb/transport.c::writex():writex: fd=100 len=12: 686f73743a76657273696f6e host:version
system/core/adb/transport.c::readx():readx: fd=100 wanted=4
system/core/adb/transport.c::readx():readx: fd=100 disconnected
system/core/adb/sysdeps_win32.c::adb_close():adb_close: 100(lo-client:5037)
system/core/adb/adb_client.c::adb_connect():adb_connect: service host:start-server


推荐答案

在启动ADB服务器之前尝试设置环境变量ADB_TRACE,以查看它是否可以提供任何线索:

Try setting the environment variable ADB_TRACE before starting the ADB server to see if it can provide any clues:

 C:\Android\android-sdk\platform-tools>set ADB_TRACE=1
 C:\Android\android-sdk\platform-tools>adb start-server

请在您的问题中包括输出。

Please include the output in your question.

这篇关于ADB未启动(无错误消息)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆