错误:停止 ADB 服务器失败(代码 -1){安装 API 的 - Android SDK}
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11572577/
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
Error: Stopping ADB Server Failed (Code -1) {Installing API's - Android SDK}
提问by insomnia
I am in the process of Downloading and installing the most recent Android API's and System images on my recent install of Android SDK.
我正在下载并安装最近安装的 Android SDK 上的最新 Android API 和系统映像。
While downloading the API's, I ran across an error fairly quickly into the install.
在下载 API 时,我在安装过程中很快就遇到了错误。
Parse XML: https://dl-ssl.google.com/android/repository/sys-img.xml
Found Intel x86 Atom System Image, Android API 15, revision 1
Done loading packages.
Preparing to install archives
Downloading Android SDK Platform-tools, revision 13
Installing Android SDK Platform-tools, revision 13
Stopping ADB server failed (code -1).
Installed Android SDK Platform-tools, revision 13
The Error is this one:
错误是这样的:
Stopping ADB server failed (code -1).
停止 ADB 服务器失败(代码 -1)。
I am curious, will this effect the outcome of the installation? It says that it installed, and it continued onto the next API, so did this effect it?
我很好奇,这会影响安装的结果吗?它说它安装了,它继续到下一个API,那么这有影响吗?
I assume this happened because I am downloading the API's over a Tethered Android mobile device right now, which is indeed dependent on ADB to tether to the computer. So if it were to stop, it would cancel the download, making the install impossible anyway.
我认为这是因为我现在正在通过 Tethered Android 移动设备下载 API,这确实依赖于 ADB 来连接到计算机。因此,如果要停止,它将取消下载,无论如何都无法进行安装。
So really, the main question is whether this will effect the installation, not being able to stop ADB while installing and downloading the API's.
所以实际上,主要问题是这是否会影响安装,在安装和下载 API 时无法停止 ADB。
And if this will effect the install, couldn't I just follow the links listed for each API' download manually and install manually? Considering I am on the Mobile Device I treat every bit as gold. Despite the fact I have an unlimited data plan, I prefer to not be one of the ones who get capped for being in the top 5%, which actually happened to me on my old AT&T plan.
如果这会影响安装,我难道不能只按照每个 API 下载列出的链接手动手动安装吗?考虑到我在移动设备上,我将每一点都视为黄金。尽管我有一个无限数据计划,但我不想成为排名前 5% 的人之一,这在我的旧 AT&T 计划中实际上发生在我身上。
So any way to be able to do this once, and do it without stopping ADB, would be great. Just need your thoughts folks.
因此,任何能够做到这一点并且在不停止 ADB 的情况下做到这一点的方法都会很棒。只是需要你的想法伙计们。
Thanks for your time, I appreciate it.
感谢您的时间,我很感激。
采纳答案by prashant
AFAIK, the after installing all the packages, the download manager restarts the ADB service. In your case, it appears that the download manager was not able to stop the adb service. If i were to validate the installation,
AFAIK,安装所有软件包后,下载管理器重新启动 ADB 服务。在您的情况下,下载管理器似乎无法停止 adb 服务。如果我要验证安装,
I would just kick off the installation again, and this time i'll probably see lot of packages already installed. If something missing, i'll get a chance to install it.
You can always manually restart the adb service to see if it restarts clean without any error.
我会再次开始安装,这次我可能会看到很多已经安装的软件包。如果缺少什么,我将有机会安装它。
您始终可以手动重新启动 adb 服务,以查看它是否重新启动干净而没有任何错误。
回答by LarsH
According to http://sitepoint.com/beginning-android-install-an-android-platform, that error message occurs "because the ADB server isn't running at this point." Which implies you can safely ignore it: The ADB server doesn't need to be running; the installation process is just trying to stop it if it isrunning.
根据http://sitepoint.com/beginning-android-install-an-android-platform,出现该错误消息“因为 ADB 服务器此时未运行。” 这意味着您可以放心地忽略它:ADB 服务器不需要运行;如果它正在运行,安装过程只是试图停止它。
Seems to me the dev team should really let you know that this error doesn'trepresent a problem, instead of highlighting it in red, as they still do (as of Dec. 2014).
在我看来,开发团队真的应该让你知道这个错误并不代表一个问题,而不是像他们一样用红色突出显示它(截至 2014 年 12 月)。
回答by timmyt123
I also was tethering and was unable to have adb start in Android Studio. Since, it has started for tethering, it seems as though it is a conflict for Android Studio to restart it.
我也被共享并且无法在 Android Studio 中启动 adb。因为,它已经开始用于网络共享,Android Studio 重新启动它似乎是一个冲突。