2015-07-10 97 views
0

我刚刚更新了我的build.gradle的应用程序文件与新的SDK 22.2.0SDK 22.2.0 zhcon失败同步

到现在为止,我不能同步文件,因为机器人工作室问我什么时候安装SDK按安装他给我这个错误:

enter image description here

这是我的build.gradle文件的应用程序源代码:

apply plugin: 'com.android.application' 

android { 

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

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

帮助我。

回答

0

我刚刚发现,以错误

compile 'com.android.support:appcompat-v7:22.2.0' 

您需要更改

buildToolsVersion "22.0.1" 

我不知道现在为什么?

但它解决了同步问题。

+1

最后的版本是22.0.1,没有Build-tools 22.2.0 –