Closed captain-miao closed 1 year ago
谷歌服务的手机
Default FirebaseApp is not initialized in this process com.heavysword.chuanshu:marsservice. Make sure to call FirebaseApp.initializeApp(Context) first.
com.google.firebase.FirebaseApp.getInstance(FirebaseApp.java:179)
应用闪退
private void initFCM(Context context) { FirebaseApp.initializeApp(context); // 增加这一行 FirebaseMessaging.getInstance().setAutoInitEnabled(true); ... }
谢谢反馈
操作说明
谷歌服务的手机
表现现象
Default FirebaseApp is not initialized in this process com.heavysword.chuanshu:marsservice. Make sure to call FirebaseApp.initializeApp(Context) first.
com.google.firebase.FirebaseApp.getInstance(FirebaseApp.java:179)
应用闪退
修复