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

谁说胖子不能爱 提交于 2019-12-02 10:25:59

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"
    }
    ...
}

You also need to open up "build.gradle" script and change the classpath to latest gradle repository.... mine is 'com.android.tools.build:gradle:3.0.0-alpha3'

Hope this helps everyone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!