Clean Blank Android App fails to build - 'failed to find Build Tools revision 23.0.0 rc1'

后端 未结 3 1964
花落未央
花落未央 2020-12-31 18:27

New to Android, Tried to build a clean \'Blank App\' android project.

I get the below error, which is confusing because I have version 24 installed using the SDK ma

3条回答
  •  没有蜡笔的小新
    2020-12-31 18:58

    If you cannot find 23.0.0 rc1 in sdk mananger, you can modify gradle's sdk version. How? edit build.gradle like this, and change buildToolsVersion.

    android {
        compileSdkVersion 22
        buildToolsVersion "23.0.1"
    
        defaultConfig {
            applicationId "com.sunjiajia.androidnewwidgetsdemo"
            minSdkVersion 14
                targetSdkVersion 22
            versionCode 1
            versionName "1.0"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
    }
    

提交回复
热议问题