Firebase dependency in Android Library: Cannot invoke method get() on null object

后端 未结 1 1650
独厮守ぢ
独厮守ぢ 2021-01-02 05:06

I\'m experiencing a build issue when adding a firebase dependency to a android library.

My setup is as follows

/settings.gradle



        
相关标签:
1条回答
  • 2021-01-02 05:50

    Upgrading the google-services plugin to version 4.0.1 fixed the issue.

    From the Firebase sdk changelog page: https://firebase.google.com/support/release-notes/android

    In other words, change this:

    classpath 'com.google.gms:google-services:4.0.0'
    

    to this:

    classpath 'com.google.gms:google-services:4.0.1'
    
    0 讨论(0)
提交回复
热议问题