我使用的是Windows 10,当我在Android Studio中启动虚拟设备模拟器时,我一直收到这样的消息:

“c:\ users \ siview \ appdata \ local \Android\ sdk \platform-tools\ ADB .exe目录下的ADB二进制文件已经过时,并且在Android模拟器上存在严重的性能问题。请更新到新版本,以获得更快的应用程序/文件传输”。

我是一个没有什么经验的新开发人员。我需要将哪些内容更新到较新的版本,以便不再显示该消息?


当前回答

对我有效的解决方法是

我关闭了Android Studio。

我访问了这个网站——https://androidstudio.io/downloads/tools/download-the-latest-version-of-adb.exe.html

从那里我下载了最新的adb.zip文件

我解压文件夹,复制3个文件-

adb.exe
AdbWinApi.dll
AdbWinUsbApi.dll 

我打开文件夹C:\Users\PayelSenapati\AppData\Local\Android\Sdk\platform-tools

在那里,我用新文件替换了旧文件。(粘贴后替换现有文件)

然后我重新打开我的Android Studio,打开我的虚拟Android设备。一切都很顺利。错误不再存在了。

其他回答

如果你在完成了上面列出的每一个步骤后都被困住了,我建议你结合多个答案。@ kuya和@褚阳光的答案对我很有用。试试吧。如果这些步骤对你有效果,我可以解释更多。

我也遇到了同样的问题,并通过更新Android SDK Build-Tools解决了这个问题。在Android studio中打开SDK管理器(双shift和类型SDK管理器)。然后在第二个选项卡(SDK Tools)上更新Android SDK Build-Tools,错误消息就会消失。

(你提到你是Android Studio的新手)所以我建议按Android Studio > Help > Check for updates…按钮,用于更新您的环境。

我按照答案做了,但神奇的最后一步是删除现有的虚拟环境并创建一个新的虚拟环境。

我对机器人也不熟悉。Dkalev的回答是正确的,但对于新用户来说并不是很具有描述性。我列出了以下步骤。

Double Shift to open the search box Type SDK Manager In the results shown click "SDK Manager" In the window that opens click the second tab "SDK Tools". You should see that there is an update available for SDK Build-Tools on the first line Check "Show Package Details" in the lower right hand corner Scroll to the last (latest version) item under "SDK Build-Tools" and check the box. (Mine was 28.0.1) Click "Apply" In the dialogue box that pops up, click "OK" When the installer finishes, click "Finish" Uncheck "Show Package Details" and look at "Android SDK Build-Tools" (first line). There should be no update available and it should say "Installed" Click "OK" to close the SDK Manager