해결 실패 : com.google.firebase : firebase-core : 11.2.0
프로젝트를 동기화 할 때 여러 "해결 실패"문제가 발생합니다. 그들은 모두 firebase 및 play-services 관련입니다. 나는 그것들이 모두 동일하다는 것을 확인했습니다 (11.2.0). 나는 또한 확인했고 둘 다의 최신 버전은 11.2.0입니다. 또한 유사한 질문에 대한 다른 모든 답변에는 SDK 관리자의 Google Play 서비스 및 저장소 업데이트가 포함되지만 내 것은 이미 최신 상태입니다.
내 프로젝트를 동기화 할 수없는 이유를 아십니까?
편집-현재 작업 솔루션
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.google.gms:google-services:3.0.0'
classpath 'com.google.firebase:firebase-plugins:1.0.4'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven { url "https://maven.google.com" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
maven { url "https://maven.google.com" }루트 레벨 build.gradle파일에 추가
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
}
이제 Google Play 서비스 및 Firebase 버전 11.2.0 출시를 통해 Play 서비스 및 Firebase 종속성을 사용할 수 있습니다 .maven.google.com
여기 에서 Google Play 서비스 공식 문서를, 여기 에서 firebase 문서를 찾을 수 있습니다 . .
allprojects {
repositories {
jcenter()
maven { url 'https://maven.google.com' }
}
}
Android gradle 플러그인 3.x를 사용하는 경우 다음을 사용할 수도 있습니다.
allprojects {
repositories {
jcenter()
google()
}
}
firebase-core 종속성 을 추가하여 동일한 오류를 수정했습니다 .
implementation 'com.google.firebase:firebase-core:16.0.1'
16.0.0파이어베이스 가 출시 되면서
- 설정 대부분의 내 구글 플레이 서비스 라이브러리
15.0.0로 필요한 분석 및 tagmanager을16.0.0 - 내 지원 라이브러리 버전을
27.1.1 - firebase-core to
16.0.0
SDK 27 기반
추가 변경 사항 :
또한 내 분석을 16.0.0으로 업데이트해야했습니다.
- 구현 'com.google.android.gms : play-services-analytics : 16.0.0'
Part of the independent versions thing Android did recently I am guessing. May need to try going up or down a version on the google play services and firebase libraries
The best Method to fix this problem is not using the manual method of linking firebase to your app.
I have tried adding latest firebase repo by referring to this Link .
It showed error " failed to resolve the dependencies firebase 11.2.0"
FireBase recommends adding firebase to your app with the help of FireBase Assistant for Android Studio Version 2.2 and Higher. Manually adding the latest library to build-gradle(module) result in an error as above.
Firebase assistant added lower versions 10.0.1 automatically to dependencies on the module gradle-build which is compatible and could be resolved.
Firebase Assistant 사용은 매우 쉽고 2 단계 프로세스입니다. 참고로 위에서 언급 한 링크에서 "Firebase Assistant 사용"섹션을 사용할 수 있습니다.
내 Android Studio 2.3.3에서 실제로 작동했습니다. 또한 Google Repository가 최신 상태인지 확인하십시오.
도구-> sdk 관리자-> sdk 도구에서 Google Play 서비스 및 Google 저장소를 설치하고 프로젝트를 동기화하면 정상적으로 작동합니다.
'Program Club' 카테고리의 다른 글
| Android Studio를 사용하여 메모리를 분석하는 방법 (0) | 2020.10.25 |
|---|---|
| 새로 고침 중에 SwipeRefreshLayout으로 조각을 전환하면 조각이 고정되지만 실제로는 여전히 작동합니다. (0) | 2020.10.25 |
| 이진 트리 vs. 연결 목록 vs. 해시 테이블 (0) | 2020.10.25 |
| jQuery 시간 선택기 (0) | 2020.10.25 |
| C #에서 구조를 바이트 배열로 변환하는 방법은 무엇입니까? (0) | 2020.10.25 |

