Android Приложение Studio не будет собираться с помощью firebase: сбой зависимости - PullRequest
0 голосов
/ 25 марта 2020

Это то, что я получаю, когда программа не в состоянии собрать:

 What went wrong:
 Execution failed for task ':app:javaPreCompileDebug'.
 > In project 'app' a resolved Google Play services library dependency depends on another at an exact 
 version (e.g. "[11.0.1]", but isn't being resolved to that version. Behavior exhibited by the library 
 will be unknown.
 Dependency failing: com.google.firebase:firebase-storage:11.0.1 -> com.google.firebase:firebase- 
 common@[11.0.1], but firebase-common version was 19.3.0.

В файле build.gradle (: app) это то, что у меня есть в зависимостях:

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'

implementation 'com.google.android.gms:play-services:11.0.1'

implementation 'com.google.android.gms:play-services-analytics:17.0.0'

implementation 'com.google.firebase:firebase-analytics:17.2.3'
implementation 'com.google.firebase:firebase-storage:11.0.1'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' 
}

Я не знаю, где firebase-common версия 19.3.0, как указано в ошибке. Я не очень знаком с этим, поэтому любая оценка того, как я могу понять, что не так, будет оценена!

...