Flutter Emulator Error | Failed to find Platform SDK with path: platforms;android-R
1,166
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
}
}
}
}
Author by
Admin
Updated on December 22, 2022Comments
-
Admin over 1 year
i am compiling my app in IOS simulator it runs find and when i try to run it on android emulator or android phone it give me this error. i already installed all SDKs but still i have this issue.
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
i am posting screenshot of my build gradle file and sdk manager: build gradle file