简体   繁体   English

在Android Studio中找不到Android SDK

[英]Android SDK not found in Android Studio

I have a project in Android Studio that no longer runs on the emulator. 我在Android Studio中有一个项目不再在模拟器上运行。 I have checked the project settings numerous times and the path to the SDK is correct and I have even tried to create new SDK file paths. 我已经多次检查了项目设置,并且SDK的路径正确无误,甚至尝试创建新的SDK文件路径。 Even after doing a Gradle Sync the error that "local sdk path not found" still appears. 即使执行了Gradle同步后,仍然出现“找不到本地sdk路径”的错误。 Please help, I have tried everything I know and nothing on Google is seeming to solve this issue. 请帮忙,我已经尽我所能尝试了一切,但Google似乎没有任何方法可以解决此问题。

尝试选择Build > Clean Project

Invalidate cachae and Restart did the trick for me. 使cachae无效,然后重新启动为我解决了问题。 Go to File -> Invalidate cache/Restart -> Invalidate and restart . 转到File -> Invalidate cache/Restart -> Invalidate and restart

Also check if path is correct in your local.properties file, available in your project dir. 另外,请检查local.properties文件中的路径是否正确, local.properties文件位于项目目录中。

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

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