在成功地将Eclipse-Android-Project导入到“Android Studio 1.4”后,我得到了错误

"Please select Android SDK"

当我点击按钮在模拟器中运行应用程序时,我找不到任何方法来这样做。

当我点击“run”时,这个对话框就会打开:

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

我现在该怎么办?


当前回答

对于Android Studio 3.5,“File -> Sync project with gradle files”就足够了。

其他回答

Source Compatibility should be selected as the minimum Android Version that your app should be compatible with(usually selected as SDK 15), Target Compatibility should be selected as the newest Android Version that your app should be compatible with(SDK 23). Afterwards you want to check your AndroidMenifest and your gradle.build to see if its realy set to the properties selected if not you can just add it manually. and ofcourse you should check the SDK Location is actually pointing to your android studio SDK folder (if you are importing from Eclipse then you should point to your Eclipse SDK folder).

这对我很管用。

文件->设置-> Android SDK -> Android SDK位置编辑-> Android SDK

buildToolsVersion可能在应用程序的build.gradle中丢失

buildToolsVersion "26.0.3"

像这样加起来

对于Android Studio 3.5,“File -> Sync project with gradle files”就足够了。

对于那些遇到此问题的人,我建议您进行一次干净安装(删除以前安装的任何现有设置和文件)。不要浪费时间解决问题。我正在搜索android studio 3.6.3的答案,没有结果。