GoogleマップのアクティビティをAndroidアプリケーションで使用しているうちに、このエラーが発生します。バージョン「com.google.android.gms:play-services:11.8.0」のキャッシュがありません
「com.google.android.gms:play-services:11.8.0」を解決できませんでした。
プロジェクトレベル Gradleのファイル:
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
google()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
アプリケーションレベル Gradleのファイル:
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.google.android.gms:play-services:11.8.0'
}
Android SDKマネージャの「エクストラ」に「Googleリポジトリ」もインストールされていることを確認してください。 –
はい、私はすでにそれをインストールしました。 –
[Failed To Resolve:com.google.firebase:firebase-firestore:11.4.2]の複製があります(https://stackoverflow.com/questions/46569165/failed-to-resolve-com-google-firebasefirebase-firestore11- 4-2) –