Firebase database getInstance crashes app

后端 未结 3 1121
忘掉有多难
忘掉有多难 2020-12-19 11:02

When running the sample after creating google-service.json, the app crashes when trying to get database reference in SignInActivity

mDatabase = FirebaseDatab         


        
3条回答
  •  悲&欢浪女
    2020-12-19 11:30

    Changing google-services.json file didn't worked for me later i found out that i was using implementation 'com.google.firebase:firebase-analytics:17.5.0' implementation 'com.google.firebase:firebase-database:16.0.4' instead of implementation 'com.google.firebase:firebase-analytics-ktx:17.5.0' implementation 'com.google.firebase:firebase-database-ktx:19.4.0'

提交回复
热议问题