Вы должны добавить эти зависимости в файл build.gradle (Module):
implementation 'com.google.firebase:firebase-core:16.0.3'
implementation 'com.google.firebase:firebase-auth:16.0.3'
implementation 'com.google.firebase:firebase-database:16.0.1'
Также добавьте google-services
classpath к build.gradle (верхнего уровня):
classpath 'com.google.gms:google-services:4.1.0'
И важно, чтобы успешно запустить приложение добавить google-services.json
в
Папка модуля приложения с подключаемым модулем в файле build.gradle (Модуль):
apply plugin: 'com.google.gms.google-services'