0
我試圖認證和使用GOOGEL API爲Android,但是當我嘗試配置建立依賴關係和同步的項目它給我一個錯誤,如授權谷歌API錯誤
Error:Execution failed for task ':app:prepareDebugAndroidTestDependencies'.> Dependency Error.
詳見控制檯。
的gradle構建(APP):
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:24.2.1'
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services-auth:10.2.0'
compile 'com.google.api-client:google-api-client:1.22.0'
compile 'com.google.api-client:google-api-client-android:1.22.0'
compile 'com.google.apis:google-api-services-people:v1-rev4-1.22.0'
我怎樣才能解決這個問題?