Почему я получаю следующее сообщение: «Не удалось найти com.google.firebase: firebase-core: 16.1.0».ошибка все время? - PullRequest
0 голосов
/ 14 марта 2019

Я действительно сыт по горло этими глупыми ошибками студии Android, дело в том, что я включил зависимость implementation com.google.firebase:firebase-core:16.1.0 в мой файл build.gradle, но все еще получаю сообщение об ошибке :::

Не удалось найти com.google.firebase: firebase-core: 16.1.0.

Также, если я пытаюсь изменить его с 16.1.0 на 16.0.1, ошибка все равно продолжается. Как исправить эту проблему Я создал почти 80% своего приложения, и теперь, когда я только что создал новое действие, оно показывает эту ошибку, я также удалил действие, но проблема все еще продолжается. Что это за исправление? Заранее спасибо !!

classpath 'com.google.gms:google-services:4.0.1'

А вот мой файл Gradle:

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout: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'
implementation 'com.github.ittianyu:BottomNavigationViewEx:2.0.2'
implementation 'me.anwarshahriar:calligrapher:1.0'
implementation 'com.firebaseui:firebase-ui-database:4.3.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-auth:16.1.0'
implementation 'com.google.firebase:firebase-core:16.1.0'
implementation 'com.squareup.picasso:picasso:2.5.2'

}

1 Ответ

1 голос
/ 15 марта 2019

Не удалось найти com.google.firebase: firebase-core: 16.1.0 "

Это происходит потому, что firebase-core: 16.1.0 не существует (сегодня).
Вы можете проверить последнюю версию здесь. В настоящее время это 16.0.7

Firebase Core com.google.firebase: firebase-core: 16.0.7

Измените свою зависимость в:

implementation 'com.google.firebase:firebase-core:16.0.7'
...