Android app does not connect to Firebase

前端 未结 21 1860
太阳男子
太阳男子 2020-12-13 17:50

I\'m developing android app using Firebase GMS service.
I tried to follow their tutorials, i made project as they said, downloaded the json files.

But when I

相关标签:
21条回答
  • Remove this line if you are working with databinding from gradle.properties

    android.databinding.enableV2=true
    
    0 讨论(0)
  • 2020-12-13 18:17

    For me the solution is, to replace all "compile 'com.google...." to "implementation 'com.google..."

    0 讨论(0)
  • 2020-12-13 18:18

    In build.gradle file replace 'compile' with 'implementation' and sync project.

    0 讨论(0)
  • 2020-12-13 18:21

    I tried a lot of ways, but the simplest way is updated com.google.gms:google-services from 3.1.1 to 3.2.0

    0 讨论(0)
  • 2020-12-13 18:21

    Remove this line if you are working with databinding from gradle.properties

    android.databinding.enableV2=true
    

    Already the databinding is enabled in the app gradle file

    0 讨论(0)
  • 2020-12-13 18:22

    I recently update to Android studio 4.0 and got into this error. I was still using the obsolete way to add the databinding . Changing it to the updated way to use the data binding resolved my issue. Below is the code :

    buildFeatures{
            dataBinding = true
            // for view binding :
            // viewBinding = true
        }
    
    0 讨论(0)
提交回复
热议问题