Attempt to invoke virtual method com.google.firebase.iid.FirebaseInstanceId.getInstanceId()' on a null object reference

前端 未结 3 1530
走了就别回头了
走了就别回头了 2020-12-17 23:38

I am to using firebase-messaging library and trying to fetch the token using below method on app launch.

FirebaseInstanceId.getInstance().getInstance         


        
3条回答
  •  失恋的感觉
    2020-12-17 23:52

    There was problem in merged manifest, following service was missing from the merged manifest. Added same to AndroidManifest.xml it worked like a charm.

     
                
     
    

    Everything is working fine now.

提交回复
热议问题