3

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

sdk tools

khaliq Dad
  • 31
  • 1

1 Answers1

2
    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
            }
        }
    }
}