Чтобы решить эту проблему, измените следующие строки кода:
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-core:16.0.1'
implementation 'com.google.firebase:firebase-storage:16.0.1'
implementation 'com.google.firebase:firebase-auth:16.0.1'
implementation 'com.google.android.gms:play-services-vision:17.0.2'
до
implementation 'com.google.firebase:firebase-database:16.0.5'
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.google.firebase:firebase-storage:16.0.5'
implementation 'com.google.firebase:firebase-auth:16.1.0'
implementation 'com.google.android.gms:play-services-vision:16.2.0'
Пожалуйста, убедитесь, что у вас есть следующая строка кода в качестве последней строки в вашем файле Gradle:
apply plugin: 'com.google.gms.google-services'
Также убедитесь, что у вас на верхнем уровне (Project) build.gradle
есть файл следующего плагина Google Services:
classpath 'com.google.gms:google-services:4.2.0'