App just opens and closes after running from android studio on android phone

后端 未结 2 498
离开以前
离开以前 2021-01-25 06:21

App just opens and closes after running from android studio on android studio.

Following warning is also shown :

The app gradle file must have a dependency on co

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-25 06:24

    Assuming all other setup is correct, the error is self explanatory. You need to add a dependency on Firebase Core in your app gradle file under dependencies:

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

    You might also want to check out the link below for any missing steps.

    Add Firebase to Android Project

提交回复
热议问题