AndroidStudio Failed to Sync Gradle project, Failed to find target Google Inc

前端 未结 2 533
傲寒
傲寒 2021-01-28 06:08

How can I resolve the Gradle Sync problem? I installed the missing SDK versions but the error shown again.

Take a look to the screenshots please...

Screenshot 1

2条回答
  •  孤独总比滥情好
    2021-01-28 06:46

    Your compileSdkVersion must be a number, not a String

    Example:

    android {
        compileSdkVersion 24
        buildToolsVersion "24.0.2"
    
        defaultConfig {
            applicationId "com.yourpackage.yourapp"
            minSdkVersion 11
            targetSdkVersion 24
            versionCode 4
            versionName "1.3"
        }
        ...
    }
    

提交回复
热议问题