OStack程序员社区-中国程序员成长平台

标题: android - 如何在 Android Studio 中显示 "select Android SDK"? [打印本页]

作者: 菜鸟教程小白    时间: 2022-8-1 01:25
标题: android - 如何在 Android Studio 中显示 "select Android SDK"?

将 Eclipse-Android-Project 成功导入“Android Studio 1.4”后,出现错误

"lease select Android SDK"



当我单击按钮在模拟器中运行应用程序时,但我找不到任何方法。

当我单击“运行”时,此对话框打开:

This dialog opens up when I click on "run"

这是“项目结构”对话框:

Screenshot of the "project structure" dialog

我现在该怎么办?



Best Answer-推荐答案


我去 build.gradle并点击 立即同步 .然后它起作用了。

更新 :
File -> Sync Project with Gradle Files (Android Studio 3.1.1)
Tools -> Android -> Sync Project with Gradle Files (Android Studio 3.0.1)

或者您可以单击工具栏中的图标。

Sync Project Icon

This answer may not help works for later version as Android studio Team work on making the tool more better, the way to sync may be different in the next version of Android Studio.



普通方式 可能有帮助的是尝试 同步项目然后 使缓存无效 重启安卓工作室。
Android Studio 3.1.2 的解决方案[See below answer]

Latest Android Studio version

关于android - 如何在 Android Studio 中显示 "select Android SDK"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34353220/






欢迎光临 OStack程序员社区-中国程序员成长平台 (http://ostack.cn/) Powered by Discuz! X3.4