简体   繁体   English

Android Studio 找不到 adb

[英]Android Studio doesn't find the adb

After my Anti Virus program deletes my adb.exe file out of the folder:在我的防病毒程序从文件夹中删除我的adb.exe文件后:

C:\\Users\\Moritz\\AppData\\Local\\Android\\Sdk\\platform-tools C:\\Users\\Moritz\\AppData\\Local\\Android\\Sdk\\platform-tools

I can not run my Android projects, cause this file is missing.我无法运行我的 Android 项目,因为缺少此文件。

I tried to copy this file back into this folder but the access is blocked by windows.我试图将此文件复制回此文件夹,但访问被 Windows 阻止。 I have admin rights.我有管理员权限。 What can I do?我能做什么? Can Android Studio download this file again? Android Studio 可以再次下载此文件吗?

To make sure you don't encounter issues due to folder overwriting you may want to delete previous为确保您不会因文件夹覆盖而遇到问题,您可能需要删除以前的

{InstallationPath}\\Android\\Sdk\\platform-tools {安装路径}\\Android\\Sdk\\platform-tools

Open the SDK manager in the Android Studio , switch to SDK tools tab and and select/install the Android SDK Platform-tools.在 Android Studio 中打开 SDK 管理器,切换到 SDK 工具选项卡并选择/安装 Android SDK Platform-tools。

Also, just to make sure antivirus doesn't mark that file again , you need to whitelist that entire folder with you antivirus system此外,为了确保防病毒软件不会再次标记该文件,您需要将整个文件夹与防病毒系统一起列入白名单

For more details on installation/download refer to the answer here:- Error:Unable to locate adb within SDK in Android Studio有关安装/下载的更多详细信息,请参阅此处的答案:- 错误:无法在 Android Studio 中的 SDK 中找到 adb

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

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