>

추가 할 때까지 문제없이 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

    firebase와 gms에서 동일한 버전을 사용해야합니다. firebase 버전을 다운 그레이드하거나 gms를 높이십시오.

    compile 'com.google.firebase:firebase- storage:11.6.0'
    
    

  • 답변 # 2

    com.google.firebase:firebase-storage:11.8.0 를 추가 했으므로 Google Play 서비스 종속성이 모두 같은 버전이어야합니다.  이제 다른 모든 Google 종속성을 해당 버전으로 업데이트해야합니다

  • 이전 matlab - 축의 중심이 다르게 실린더 만들기
  • 다음 r - 동일한 범주 내에서 모든 값을 내 데이터 프레임에서 동일하게 만드는 방법은 무엇입니까?