com.google.gms:play-services-measurement-base가 다른 다양한 라이브러리에서 요청되고 있습니다.
Gradle 4.0.1로 업데이트하고 다음 오류가 발생하기 시작했습니다.
com.google.android.gms:play-services-measurement-base 라이브러리는 다른 여러 라이브러리(15.0.4, 15.0.4)에서 요청 중이지만 15.0.2로 해결됩니다.플러그인을 사용하지 않도록 설정하고 ./gradlew :app:dependencies를 사용하여 종속성 트리를 확인합니다.
제 프로젝트는 해당 종속성을 사용하지 않아서 전 세계적으로 검색해보니 내부에만 표시됩니다.
build/compates/cisco-cache/maven.google/com/google/gms/group-index.xml
이와 같이
<play-services-measurement-base versions="15.0.0,15.0.2"/>
그래서 빌드 폴더를 삭제하고 프로젝트를 정리하려고 했지만 동일한 값으로 다시 생성됩니다:/ 오류가 여전히 남아 있습니다.
실제 문제는 https://developers.google.com/android/guides/releases#may_23_2018 의 5월 23일 릴리즈 노트에 설명되어 있습니다.
기본적으로 모든 Play Services 및 Firebase 라이브러리를 최신 버전(버전 15 이후에는 다를 수 있음)으로 전환해야 합니다.https://mvnrepository.com/ 을 사용하여 각 라이브러리의 최신 버전을 찾을 수 있습니다.
참고 항목: https://firebase.google.com/support/release-notes/android#20180523
내게 맞는 유일한 해결책:
그것을 맨 아래에 놓다.
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
Google Play 서비스 종속성 및 Firebase 종속성을 최신 버전으로 유지하십시오.
또한 모든 Gradle 파일, 모듈 레벨 및 프로젝트 레벨을 확인하십시오. 모든 모듈에 공통적인 종속성 버전이 하나만 있어야 합니다.이러한 버전을 프로젝트 수준 Gradle 변수로 유지하여 해결할 수 있습니다.
Google Play 서비스 업데이트 버전은 여기에서 확인하십시오.
Firebase 업데이트 버전은 여기에서 확인하십시오.
Android용 Firebase 업데이트 버전은 여기에서 확인하십시오.
업데이트했습니다.
implementation 'com.google.android.gms:play-services-analytics:16.0.3'
그리고 그것은 나에게 효과가 있습니다.
나의 변화build.gradle
다음과 같은 것들이 저에게 효과가 있었습니다.
ext {
googlePlayServicesVersion = "15.0.1"
}
allprojects {
repositories {
mavenLocal()
maven { url 'http://maven.google.com' }
jcenter { url "http://jcenter.bintray.com/" }
google()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
configurations.all {
resolutionStrategy {
force "com.google.android.gms:play-services-basement:$googlePlayServicesVersion"
force "com.google.android.gms:play-services-tasks:$googlePlayServicesVersion"
}
}
}
}
의 최신 합니다.dependencies
문제를 해결했습니다.
'com.google.android.gms:play-services-analytics:16.0.1'
'com.google.android.gms:play-services-tagmanager:16.0.1'
Android Gradle 플러그인이 매우 오래된 경우 Google lib 하나만 사용하더라도 이 문제가 발생할 수 있습니다!보아하니 모든 구글 립스는 정확히 같은 버전이어야 했습니다.이제 그들은 똑같을 필요는 없고, 단지 최신일 뿐입니다.하나의 lib라도 지정할 때 버전이 일치하지 않고 이전 Android Gradle 플러그인이 토할 수 있는 종속성을 가져옵니다.
다음과 같은 새 버전을 설정합니다.
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
}
}
새로운 플러그인을 사용하려면 Gradle을 업데이트해야 할 수도 있습니다.
요.The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[16.0.2,16.0.2]], but resolves to 16.0.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.
중입니다../gradlew :app:dependencies
잘못된 종속성이 필요한 종속성(사각형 괄호 안의 종속성)을 나타냅니다.저에게 문제는 아래와 같이 firebase-core:16.0.3에서 발생했습니다.파이어베이스 코어를 16.0.1로 다운그레이드하여 수정했습니다.
+--- com.google.firebase:firebase-core:16.0.3
| +--- com.google.firebase:firebase-analytics:16.0.3
| | +--- com.google.android.gms:play-services-basement:15.0.1
| | | \--- com.android.support:support-v4:26.1.0 (*)
| | +--- com.google.android.gms:play-services-measurement-api:[16.0.1] -> 16.0.1
| | | +--- com.google.android.gms:play-services-ads-identifier:15.0.1
| | | | \--- com.google.android.gms:play-services-basement:[15.0.1,16.0.0) -> 15.0.1 (*)
| | | +--- com.google.android.gms:play-services-basement:15.0.1 (*)
| | | +--- com.google.android.gms:play-services-measurement-base:[16.0.2] -> 16.0.2
SOF 어딘가에서 찾을 수 있는 유일한 솔루션(링크 없음)은 다음과 같습니다.
탑본체로.grale.
allprojects {
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.google.android.gms'
&& !details.requested.name.contains('multidex')) {
details.useVersion "x.y.z"
}
}
}
}
종속성 목록에 추가합니다.이제 모든 소방 기반 의존성의 적절한 작업을 위해 필요합니다.
implementation 'com.google.firebase:firebase-core:16.0.1'
저도 같은 문제가 있었습니다.
모든 종속성의 최신 버전이 있는지 확인하십시오.저는 파이어베이스 코어와 인증에 현재 버전을 사용했습니다.최신 버전에는 버그가 수정되었습니다.
최신 버전은 https://firebase.google.com/support/release-notes/android 에서 확인할 수 있습니다.https://firebase.google.com/support/release-notes/android
현재 시점의 최신 버전 사용:
app/build.grade에서:
dependencies {
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.google.firebase:firebase-auth:16.1.0'
}
프로젝트에 Firebase 데이터베이스를 추가하려고 할 때 비슷한 문제가 발생했습니다.
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-database:16.0.3'
이 문제는 두 버전을 모두 비슷한 수준으로 다운그레이드하거나 업그레이드하여 해결할 수 있습니다.그래서 소방서 데이터베이스를 다운그레이드했습니다.
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
그리고 그게 효과가 있었어!사용 가능한 모든 버전은 다음 사이트에서 검색할 수 있습니다. https://mvnrepository.com/
다음을 사용하여 이 종속성을 풀링하는 라이브러리를 찾을 수 있습니다.
$ ./gradlew app:dependencies
저에게 이 오류는 Firebase를 통해 Crashlytics를 통합한 후에 발생했습니다. 이 오류는 다음과 같은 버전 간의 충돌로 인해 발생했습니다.
implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.android.gms:play-services-location:15.0.1'
를 '파이어베이스 코어'로 를 시도했습니다.15.0.1
하지만 그런 버전은 없는 것 같고, 오직 그리고! 대신에 나는 둘 다 버전으로 다운그레이드해야 했습니다.15.0.0
그래서 저는 결국.
implementation 'com.google.firebase:firebase-core:15.0.0'
implementation 'com.google.android.gms:play-services-location:15.0.0'
이제는 작동하지만 최신 버전을 사용할 수 있다는 짜증나는 린트 경고를 받았습니다.이 버전의 대실패는 정말 엉망진창입니다.
저의 경우 이 라인의 build.gradle 파일을 교체했습니다.
implementation 'com.google.firebase:firebase-core:16.0.8'
와 함께
implementation 'com.google.firebase:firebase-core:15.0.0'
그리고 이 줄을 추가했습니다.
implementation 'com.google.android.gms:play-services-location:15.0.0'
이제 괜찮아요.
이 문제에 부딪혔는데 릴리스 노트에 다음과 같은 내용이 나와 있었습니다.
이제 Firebase에서 com.google을 명시적으로 나열하려면 앱 그라들 파일이 필요합니다.Firebase: Firebase 서비스가 예상대로 작동하기 위한 종속성으로서의 Firebase-core.
만들기firebase-core
앱 종속성(및 라이브러리 종속성)이 이 문제를 해결해 주었습니다.
프로젝트 수준 build.gradle을 엽니다.
갱신하다com.google.gms:google-services
최신 버전입니다.최신 릴리스를 추적합니다.최근 답변 시점은 다음과 같습니다.4.1.0
.
앱 수준 build.gradle을 엽니다.
사용하는 경우 아래의 종속성을 업데이트하십시오.파이어베이스에는 이제 모든 종속성에 대한 개별 버전이 있습니다.
최신 Firebase 라이브러리를 사용합니다.답변 시점의 최신 버전은 아래와 같습니다.
Firebase Core com.google.firebase:firebase-core:16.0.3
Ads com.google.firebase:firebase-ads:15.0.1
Analytics com.google.firebase:firebase-analytics:16.0.3
App Indexing com.google.firebase:firebase-appindexing:16.0.1
Authentication com.google.firebase:firebase-auth:16.0.3
Cloud Firestore com.google.firebase:firebase-firestore:17.1.0
Cloud Functions com.google.firebase:firebase-functions:16.1.0
Cloud Messaging com.google.firebase:firebase-messaging:17.3.2
Cloud Storage c om.google.firebase:firebase-storage:16.0.2
Crash Reporting com.google.firebase:firebase-crash:16.2.0
Crashlytics com.crashlytics.sdk.android:crashlytics:2.9.5
Dynamic Links com.google.firebase:firebase-dynamic-links:16.1.1
Invites com.google.firebase:firebase-invites:16.0.3
In-App Messaging com.google.firebase:firebase-inappmessaging:17.0.1
In-App Messaging Display com.google.firebase:firebase-inappmessaging-display:17.0.1
ML Kit: Model Interpreter com.google.firebase:firebase-ml-model-interpreter:16.2.0
ML Kit: Vision com.google.firebase:firebase-ml-vision:17.0.0
ML Kit: Image Labeling com.google.firebase:firebase-ml-vision-image-label-model:15.0.0
Performance Monitoring com.google.firebase:firebase-perf:16.1.0
Realtime Database com.google.firebase:firebase-database:16.0.2
Remote Config com.google.firebase:firebase-config:16.0.0
동기화 및 빌드...
디버그 로그에 이전 버전의 파이어베이스 분석(16.0.0)이 언급되어 있다는 것을 알게 되었습니다.최신 버전을 명시적으로 추가하여 문제를 해결했습니다.
implementation "com.google.firebase:firebase-analytics:16.0.3"
모든 종속성을 최신 버전으로 업데이트하면 문제가 해결됩니다.
추가할 필요 없음com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
혼합 버전을 사용하면 충돌이 발생합니다.
파이어베이스 의존성의 버전이 다양하기 때문에 다음과 같은 오류가 발생한 것 같습니다.제 프로젝트에서 구현하고 있는 모든 종속성 버전을 16.0.1로 변경하는 것은 매력적으로 작동했습니다.
나에게 오류는 다음 행에 의해 생성되었습니다.com.google.firebase:firebase-auth:16.0.2
그리고 다음으로 변경했습니다.com.google.firebase:firebase-auth:16.0.1
그리고 그것은 효과가 있었습니다.이게 도움이 되길 바랍니다.
저의 경우, 이것은 문제를 해결합니다.
implementation 'com.google.android.gms:play-services-analytics:16.0.1'
다음과 같이 해결된 유사한 문제가 있습니다.
- 앱 레벨 그라들에서:모든 파이어베이스 종속성을 최신 버전으로 업데이트
- 프로젝트 수준 Gradle에서: 종속성을 최신 버전으로 업데이트합니다.
gms.google-services
제 경우에는 'com.google.gms:google-services:4.2.0'이었습니다.
저는 제 프로젝트가 작동하도록 하기 위해 다음과 같은 종속성을 변경했습니다.
build.gradle(앱):
implementation 'com.google.firebase:firebase-core:16.0.1'
로.
implementation 'com.google.firebase:firebase-core:16.0.8'
build.gradle(앱) :
classpath 'com.google.gms:google-services:4.0.1'
로.
classpath 'com.google.gms:google-services:4.2.0'
****참고:
다음 링크를 사용하여 종속성이 있는 라이브러리를 업데이트하십시오. https://firebase.google.com/docs/android/setup
업데이트된 버전의 Firebase를 사용하고 추가 기능을 사용하지 마십시오.이 정도면 충분합니다(그러나 스토리지 공간을 사용해야 하는 경우 또는 ...당신도 그것들을 추가해야 합니다).
//FIREBASE
implementation 'com.google.firebase:firebase-core:17.2.0'
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
//ADMob
implementation 'com.google.android.gms:play-services-ads:18.2.0'
//PUSH NOTIFICATION
implementation 'com.google.firebase:firebase-messaging:20.0.0'
implementation 'com.google.firebase:firebase-core:17.2.0'
Google 서비스를 업데이트합니다.
classpath 'com.google.gms:google-services:4.3.2'
나의 경우 아래 URL의 최신 rnfirebase를 사용합니다.
https://rnfirebase.io/docs/v4.3.x/installation/android
Android/app/proguard-rules.pro 에서 아래 추가)
-keep class io.invertase.firebase.** { *; }
-dontwarn io.invertase.firebase.**
메시지가 다음과 같은 경우:
com.google.android.gms:play-services-measurement-base 라이브러리는 다른 여러 라이브러리(15.0.4, 15.0.4)에서 요청 중이지만 15.0.2로 해결됩니다.플러그인을 사용하지 않도록 설정하고 ./gradlew :app:dependencies를 사용하여 종속성 트리를 확인합니다.
사용 중인 모든 플레이 서비스 라이브러리의 버전을 필요한 버전(이 경우 15.0.2)으로 변경하면 문제를 해결할 수 있습니다.
저의 경우, 저는 변했습니다.
implementation 'com.google.android.gms:play-services-base:+' -> implementation 'com.google.android.gms:play-services-base:15.0.2'
implementation 'com.google.android.gms:play-services-location:+' -> implementation 'com.google.android.gms:play-services-location:15.0.2'
implementation 'com.google.android.gms:play-services-maps:+' -> implementation 'com.google.android.gms:play-services-maps:15.0.2'
implementation 'com.google.android.gms:play-services-auth:+' -> implementation 'com.google.android.gms:play-services-auth:15.0.2'
implementation 'com.google.android.gms:play-services-places:+' -> implementation 'com.google.android.gms:play-services-places:15.0.2'
여기서 해결했습니다. 저도 소방 기지에 충돌 분해제를 추가하려고 할 때 같은 문제에 직면했습니다.com.google.android.gms:play-services 및 com.google에 대한 최신 종속성 버전을 업데이트하십시오.화재 기지: ......자동으로 문제가 해결됩니다.
저는 파이어베이스-디버깅 구현을 추가하려고 할 때 동일한 문제가 있었습니다. 만약 제가 그 라인을 언급한다면, 그것은 작동합니다. 그래서 저는 몇 번의 시도 끝에 https://firebase.google.com/docs/android/setup 로 갔습니다.
거기서 사용 가능한 라이브러리의 버전을 확인했는데 Firebase 코어가 16.0.1(현재 버전은 16.0.4)이었기 때문에 수동으로 변경하여 정상적으로 작동하고 빌드 및 동기화에 성공했습니다.
제 경우에는 단순히 제거합니다.
implementation "com.google.android.gms:play-services-ads:16.0.0
파이어베이스 광고 의존성 추가
implementation 'com.google.firebase:firebase-ads:17.1.2'
같은 문제가 있었습니다.당신은 콜론을 제거해야 합니다: 그레이들의 버전 뒤에 (그것은 버그입니다.
다음과 같은 설정이 적합했습니다.
implementation 'com.google.firebase:firebase-firestore:17.1.5'
또한 눈금에서 multiDexEnabled를 true로 설정합니다(DexOverflow가 표시되는 경우).예외 오류):
android {
compileSdkVersion 27
..
multiDexEnabled true
}
언급URL : https://stackoverflow.com/questions/50577437/com-google-android-gmsplay-services-measurement-base-is-being-requested-by-vari
'code' 카테고리의 다른 글
strln이 NULL을 확인하지 않음 (0) | 2023.08.01 |
---|---|
2.0 asmx 웹 서비스에서 JSON을 반환하는 방법 (0) | 2023.08.01 |
Oracle SQL Developer에서 Refursor 결과/출력을 확인하는 방법은 무엇입니까? (0) | 2023.08.01 |
쿠버네츠에서 포드를 멈추는 방법 (0) | 2023.08.01 |
숫자의 모든 나누기를 얻는 가장 좋은 방법은 무엇입니까? (0) | 2023.08.01 |