2015-07-10 82 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 –