Saturday, September 5, 2015

Error:failed to find Build Tools revision 23.0.0 rc2 Install Build Tools 23.0.0 rc2 and sync project

How to resolve this problem ?

apply plugin: 'com.android.application'
android {
    compileSdkVersion 21    buildToolsVersion "23.0.0 rc2"
    defaultConfig {
        applicationId "com.love.hades.hades"        minSdkVersion 19        targetSdkVersion 21        versionCode 1        versionName "1.0"    }
    buildTypes {
        release {
            minifyEnabled false            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.2.0'
    compile 'com.jakewharton:butterknife:5.1.2'//inject}

why?

Because  the buildToolversion you set is "23.0.0.r2"  but your Mac SDK din't have the version. I check my version the lastest version is 22. So the gradle to complie will occer the error.

Folling this way:
you just change the buildToolVersion like this(you have install version! OK )

android {
    compileSdkVersion 21    buildToolsVersion "22.0.0"


No comments:

Post a Comment