Getting NPE in FirebaseDatabase.getReference()

前端 未结 3 876
抹茶落季
抹茶落季 2021-01-21 00:13

I am getting NPE in production build on app start and only once after reinstalling with adb.

Caused by java.lang.NullPointerException
Attempt to invoke interfac         


        
3条回答
  •  后悔当初
    2021-01-21 00:40

    add this to the ProGuard configuration, in order to exclude these classes from obfuscation:

    -keep,includedescriptorclasses class com.google.firebase.** { *; }
    

    the fact, that only the release build is being affected hints for this -

    different library versions may provide different (library) consumer rules.

提交回复
热议问题