Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 颤振模拟器错误|未能找到路径为:platforms的平台SDK;安卓-R_Android_Flutter_Android Fragments_Sdk_Android Gradle Plugin - Fatal编程技术网

Android 颤振模拟器错误|未能找到路径为:platforms的平台SDK;安卓-R

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

我在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 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
            }
        }
    }
}