오류: com.google.gms를 찾을 수 없음: google-services: 4.2.0
오늘 저는 com.google.gms:google-services를 4.1.0에서 4.2.0으로 업데이트하려고 했습니다. 이것은 파이어베이스에서 권장하는 최신 버전이기 때문입니다.하지만 다음과 같은 오류가 발생합니다.
Could not find com.google.gms:google-services:4.2.0.
Searched in the following locations:
https://jcenter.bintray.com/com/google/gms/google-services/4.2.0/google-services-4.2.0.pom
https://jcenter.bintray.com/com/google/gms/google-services/4.2.0/google-services-4.2.0.jar
https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.2.0/google-services-4.2.0.pom
https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.2.0/google-services-4.2.0.jar
https://maven.fabric.io/public/com/google/gms/google-services/4.2.0/google-services-4.2.0.pom
https://maven.fabric.io/public/com/google/gms/google-services/4.2.0/google-services-4.2.0.jar
Required by:
project :
여기 제 프로젝트의 빌드 그라들이 있습니다.
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
maven {
url 'https://maven.fabric.io/public'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.2.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
// These docs use an open ended version so that our plugin
// can be updated quickly in response to Android tooling updates
// We recommend changing it to the latest version from our changelog:
// https://docs.fabric.io/android/changelog.html#fabric-gradle-plugin
classpath 'io.fabric.tools:gradle:1.27.0'
}
}
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
}
google()
}
}
업데이트:
Doug Stevenson이 말했듯이 의존성은 이제 실행 중이므로 저장소에서 Google()을 사용하십시오.
다른 Google 리포지토리(파이어베이스, 엑소플레이어)에 문제가 있는 경우 여기에서 문제 진행 상황을 추적할 수 있습니다.
구글 서비스:4.2.0은 중앙 저장소에서 사용할 수 없기 때문에 Android Tools Repository에서 다운로드해야 합니다.프로젝트에 추가하려면 추가
maven { url 'https://dl.bintray.com/android/android-tools' }
스크립트 저장소를 빌드하기 위한 것입니다.자세한 내용은 https://mvnrepository.com/artifact/com.google.gms/google-services/4.2.0 을 참조하십시오.
buildscript {
repositories {
jcenter()
google()
maven {
url 'https://maven.fabric.io/public'
}
// Add this to your project
maven { url 'https://dl.bintray.com/android/android-tools' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.2.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
// These docs use an open ended version so that our plugin
// can be updated quickly in response to Android tooling updates
// We recommend changing it to the latest version from our changelog:
// https://docs.fabric.io/android/changelog.html#fabric-gradle-plugin
classpath 'io.fabric.tools:gradle:1.27.0'
}
}
allprojects {
repositories {
jcenter()
maven {
url 'https://maven.google.com/'
}
google()
}
}
2018년 12월 10일 월요일 오후 1시 30분(태평양 표준시)
jCenter에서 Google Play 서비스 플러그인, Firebase 성능 모니터링 플러그인, exoplayer 및 기타 종속성이 누락되었습니다.이유는 명확하지 않지만, 일부 팀은 빌드 아티팩트를 구글 메이븐 레포로 옮기는 것으로 알려져 있습니다.
현재 Google Play 서비스 플러그인은 마이그레이션되었으며 현재 빌드 스크립트에서 Google()을 통해 사용할 수 있습니다.
이것을 사용해보고, 나를 위해 일하세요.
buildscript {
repositories {
google()
//jcenter()
jcenter {url 'https://dl.bintray.com/android/android-tools'}
jcenter {url 'https://firebase.bintray.com/gradle'}
mavenCentral ()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.2.0'
classpath 'com.google.firebase:firebase-plugins:1.1.5'
}
}
allprojects {
repositories {
google()
//jcenter()
jcenter {url 'https://dl.bintray.com/android/android-tools'}
jcenter {url 'https://firebase.bintray.com/gradle'}
mavenCentral ()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
구글 서비스:4.2.0은 이제 구글 메이븐 저장소로 돌아왔고, 기본 구성과 동기화만 하면 됩니다.
allprojects {
repositories {
google()
jcenter()
}
}
언급URL : https://stackoverflow.com/questions/53706565/error-could-not-find-com-google-gmsgoogle-services4-2-0
'programing' 카테고리의 다른 글
크기가 0인 배열 (0) | 2023.06.18 |
---|---|
IIS의 응용 프로그램 풀이 재활용되는 원인은 무엇입니까? (0) | 2023.06.18 |
mmap()이 순차 IO보다 빠른 이유는 무엇입니까? (0) | 2023.06.18 |
열의 텍스트를 여러 행으로 분할하는 방법 (0) | 2023.06.18 |
VueJS - Store.dispatch에서 VueChart JS가 업데이트되지 않습니다. (0) | 2023.06.18 |