Android Studio:“无法找到adb" [英] Android Studio : "Unable to locate adb"

查看:203
本文介绍了Android Studio:“无法找到adb"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了Android Studio,并尝试构建自己的第一个应用.当我在模拟器上按play时,弹出消息无法找到adb".如何解决这个问题?

I just installed Android Studios and trying to build my first app. When I press play on the emulator the message "unable to locate adb" pop-up. How to solve this problem?

推荐答案

更新到Android Studio 4.0时出现了此问题.我什至尝试卸载(并进行完整清理)Android Studio并再次安装.问题仍然存在.问题在于,当导入我的旧项目时,新的Android Studio无法找到SDK,而我的项目没有SDK(即使可以构建,如图).因此,请检查 File->项目结构->项目.在我的情况下,那里设置了一个很大的红色NO SDK.将SDK设置为已安装的SDK之后,问题就解决了.

I had this problem when updating to Android Studio 4.0. I even tried uninstalling (and doing a full cleanup) Android Studio and installing again. The problem persisted. The problem was that when importing my old project, the new Android Studio couldn't find the SDK and my project had no SDK (even though it could build, go figure). So check File -> Project Structure -> Project. In my case there was a big red NO SDK set there. Once I set the SDK to the one installed, problem was solved.

这篇关于Android Studio:“无法找到adb"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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