2016-12-28 68 views
0

我想与Gradle同步项目。但是,Gradle给出了一些错误。android-无法找到支持annotations.jar

错误代码如下:错误:配置项目':app'时发生问题。

Could not find support-annotations.jar (com.android.support:support-annotations:24.0.0). Searched in the following locations: https://jcenter.bintray.com/com/android/support/support-annotations/24.0.0/support-annotations-24.0.0.jar

我的build.gradle文件:

apply plugin: 'com.android.application' 

android { 
compileSdkVersion 24 
buildToolsVersion "24.0.1" 

repositories { 
    mavenCentral() 
} 

defaultConfig { 
    applicationId "com.example.ileem.tiiu" 
    minSdkVersion 16 
    targetSdkVersion 24 
    versionCode 1 
    versionName "1.0" 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
} 
} 

dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
testCompile 'junit:junit:4.12' 
compile 'com.android.support:appcompat-v7:24.0.0-alpha2' 
compile 'com.android.support:design:24.0.0-alpha2' 
compile 'com.facebook.android:facebook-android-sdk:4.0.0' 
compile 'com.google.android.gms:play-services:9.0.0' 
compile 'com.google.maps.android:android-maps-utils:0.4' 
compile 'com.google.firebase:firebase-messaging:9.6.1' 
compile 'com.squareup.okhttp3:okhttp:3.2.0' 

compile files('libs/gson-2.2.4.jar') 
compile files('libs/jsoup-1.10.1.jar') 

} 
apply plugin: 'com.google.gms.google-services' 

回答

0

尝试升级到的编译工具和支持库的最新版本。你可以找到他们here