추가 할 때까지 문제없이 firestore db를 사용하고 있습니다 :
compile 'com.google.firebase:firebase-
storage:11.8.0'
이제 메시지가 나타납니다 :
Error:Execution failed for task':app:processDebugGoogleServices'.
Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android- tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 11.6.0. I have tried every combination of versions in my gradle file with no success. When I comment out ..storage ll.8.0 the app gradle builds.
아래는 내 앱 gradle 파일입니다 :
apply plugin: 'com.android.application'
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath '
com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.google.gms:google-
services:3.2.0'
}
}
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.XXXXXX.XXXX"
minSdkVersion 16
targetSdkVersion 26
versionName "2.0"
multiDexEnabled true //Add this
testInstrumentationRunner
"android.support.test.runner.
AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles
getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
repositories {
flatDir { dirs "libs" }
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
def BUTTER_KNIFE_VERSION = "8.5.1" //current
version of butterknife
dependencies {
implementation fileTree(include: ['*.jar'],
dir: 'libs')
implementation 'com.android.support:appcompat-
v7:26.1'
implementation
'com.android.support.constraint:constraint-
layout:1.0.2'
implementation(name: "UGrokItApi-release", ext:
"aar")
// support
implementation supportDependencies.appCompat
implementation supportDependencies.support
implementation supportDependencies.design
implementation supportDependencies.recyclerView
implementation supportDependencies.cardView
implementation 'com.google.firebase:firebase-
database:11.6.0'
implementation 'com.google.firebase:firebase-
auth:11.6.0'
compile 'com.firebaseui:firebase-ui-auth:3.1.0'
compile 'com.google.android.gms:play-services-
auth:11.6.0'
compile 'com.google.firebase:firebase-
storage:11.8.0'
compile 'com.android.support:design:26.1.0'
compile 'com.jakewharton:butterknife:8.8.1'
annotationProcessor
'com.jakewharton:butterknife-compiler:8.8.1'
libraries.firebaseUIDatabase
'com.google.firebase:firebase-database:11.6.0'
implementation 'com.firebaseui:firebase-ui-
firestore:3.1.0'
implementation
'com.android.support:design:26.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation
'com.android.support.test:runner:1.0.1'
androidTestImplementation
'com.android.support.test.espresso:espresso-
core:3.0.1'
compile 'com.google.firebase:firebase-
firestore:11.6.0'
compile 'com.firebaseui:firebase-ui-
firestore:3.1.0'
compile 'com.android.support:recyclerview-
v7:26.1.0'
compile 'com.android.support:cardview-
v7:26.1.0'
compile 'com.android.support:support-
annotations:27.0.1'
compile 'com.google.android.gms:play-services-
location:11.6.0'
}
apply plugin: 'com.google.gms.google-services'
- 답변 # 1
- 답변 # 2
com.google.firebase:firebase-storage:11.8.0
를 추가 했으므로 Google Play 서비스 종속성이 모두 같은 버전이어야합니다. 이제 다른 모든 Google 종속성을 해당 버전으로 업데이트해야합니다
- android : CURL을 통해 모든 기기에 Firebase 알림을 어떻게 보내나요?
- Google Play를 통해 앱 웹 사이트의 버튼 클릭에서 Android 앱의 인앱 구매까지 추적하는 방법은 무엇입니까?
- android : FCM 証明書 の 有効期限 が 2022 年 5 月 21 日 に 切 れ る 件 に つ い て
- android : Flutter 애플리케이션은 Google Play의 내부 테스트 URL을 사용하는 동안 인증을 넘어 가지 않습니다.
- android : Firebase 데이터베이스에 ArrayList 저장
- android : 플러터 FCM 알림 소리가 릴리스에서 작동하지 않음
- 사용자에게이 개체에 액세스 할 수있는 권한이 없습니다. Firebase 저장소 Android
- android : missingpluginexception (plugins.flutter.io/firebase_core 채널의 firebase # initializecore 메소드에 대한 구현이 없음)
- java : 어떻게 부분 문자열로 부분 문자열을 만들 수 있습니까?
- android : Mac, Windows 및 Linux에서 keytool을 사용하여 기본 디버그 키에 대해 SHA1, SHA256, MD5를 생성하는 방법은 무엇입니까?
firebase와 gms에서 동일한 버전을 사용해야합니다. firebase 버전을 다운 그레이드하거나 gms를 높이십시오.