Android 颤振模拟器错误|未能找到路径为:platforms的平台SDK;安卓-R
我在IOS模拟器中编译我的应用程序,它运行find,当我尝试在android模拟器或android手机上运行它时,它会给我这个错误。 我已经安装了所有SDK,但仍然存在此问题Android 颤振模拟器错误|未能找到路径为:platforms的平台SDK;安卓-R,android,flutter,android-fragments,sdk,android-gradle-plugin,Android,Flutter,Android Fragments,Sdk,Android Gradle Plugin,我在IOS模拟器中编译我的应用程序,它运行find,当我尝试在android模拟器或android手机上运行它时,它会给我这个错误。 我已经安装了所有SDK,但仍然存在此问题 FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':app_settings:compileDebugAidl'. > Failed to find Pl
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app_settings:compileDebugAidl'.
> Failed to find Platform SDK with path: platforms;android-R
我正在发布我的build gradle文件和sdk管理器的屏幕截图:
您在项目结构方面有什么问题吗?您是否安装了android SDK?升级后,我发现有些东西丢失了——删除软件包并重新安装有时会有所帮助。
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
project.evaluationDependsOn(':app')
afterEvaluate {project ->
if (project.hasProperty("android") && project.property("android").compileSdkVersion.equals("android-R")) {
android {
compileSdkVersion 30
}
}
}
}