简体   繁体   English

我在 Android Studio 4 上找不到 adb

[英]I Can't locate adb on Android Studio 4

I installed Android Studio version 4 but whenever I try to run the emulator I get the error "can't locate adb".我安装了 Android Studio 版本 4,但每当我尝试运行模拟器时,我都会收到错误“找不到 adb”。 So far I made sure it's not blocked by my anti-virus I replaced the adb.exe with the new one from SDK tools到目前为止,我确保它没有被我的防病毒软件阻止我用 SDK 工具中的新版本替换了 adb.exe

But still, I can't get past that error.但是,我仍然无法克服这个错误。 Any leads or clues on what could be wrong?关于可能出错的任何线索或线索?

If you are using mac, check this answer to help you find how to add adb to PATH.如果您使用的是 mac,请查看此答案以帮助您了解如何将 adb 添加到 PATH。 Set up adb on Mac OS X 在 Mac OS X 上设置 adb

Or you could check out this article .或者你可以看看这篇文章

This might be because no sdk is selected in project.这可能是因为项目中没有选择 sdk。 Go to file->project structure->project sdk Now select an installed sdk from the list. Go 到文件->项目结构->项目 sdk 现在 select 安装 ZEAE18BC41E1434DD98FA2DD9889 列表。 It should solve the problem.它应该可以解决问题。

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

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