Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Firebase未检测到我的颤振应用程序,无法发送推送通知_Android_Firebase_Flutter_Dart_Push Notification - Fatal编程技术网

Android Firebase未检测到我的颤振应用程序,无法发送推送通知

Android Firebase未检测到我的颤振应用程序,无法发送推送通知,android,firebase,flutter,dart,push-notification,Android,Firebase,Flutter,Dart,Push Notification,Firebase未检测到我的android应用程序(在安装部分,最后一步是“运行应用程序以验证安装”)。我也无法向应用程序发送通知。我已经导入了所有重要的包(核心和消息),并根据本文完成了所有工作。我还检查了许多stackoverflow问题,如。但是,我仍然无法在我的设备(genymotion emulator)中接收推送通知。 有一个错误显示: E/FirebaseInstanceId( 7264): Topic sync or token retrieval failed on hard

Firebase未检测到我的android应用程序(在安装部分,最后一步是“运行应用程序以验证安装”)。我也无法向应用程序发送通知。我已经导入了所有重要的包(核心和消息),并根据本文完成了所有工作。我还检查了许多stackoverflow问题,如。但是,我仍然无法在我的设备(genymotion emulator)中接收推送通知。 有一个错误显示:

E/FirebaseInstanceId( 7264): Topic sync or token retrieval failed on hard failure 
exceptions: INVALID_SENDER. Won't retry the operation.
W/FirebaseMessagingPlugin( 7264): getToken, error fetching instanceID:                                             
W/FirebaseMessagingPlugin( 7264): java.io.IOException: INVALID_SENDER                                              
W/FirebaseMessagingPlugin( 7264):       at 
com.google.firebase.iid.zzl.zza(com.google.firebase:firebase-iid@@20.0.2:71)
W/FirebaseMessagingPlugin( 7264):       at 
com.google.firebase.iid.zzl.zza(com.google.firebase:firebase-iid@@20.0.2:84)
W/FirebaseMessagingPlugin( 7264):       at 
com.google.firebase.iid.zzp.then(com.google.firebase:firebase-iid@@20.0.2:4)
W/FirebaseMessagingPlugin( 7264):       at com.google.android.gms.tasks.zzd.run(Unknown 
Source)                    
W/FirebaseMessagingPlugin( 7264):       at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
W/FirebaseMessagingPlugin( 7264):       at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
W/FirebaseMessagingPlugin( 7264):       at java.lang.Thread.run(Thread.java:818)                                   
W/FirebaseMessagingPlugin( 7264): getToken, error fetching instanceID:                                             
W/FirebaseMessagingPlugin( 7264): java.io.IOException: INVALID_SENDER                                              
W/FirebaseMessagingPlugin( 7264):       at 
com.google.firebase.iid.zzl.zza(com.google.firebase:firebase-iid@@20.0.2:71)
W/FirebaseMessagingPlugin( 7264):       at 
com.google.firebase.iid.zzl.zza(com.google.firebase:firebase-iid@@20.0.2:84)
W/FirebaseMessagingPlugin( 7264):       at 
com.google.firebase.iid.zzp.then(com.google.firebase:firebase-iid@@20.0.2:4)
W/FirebaseMessagingPlugin( 7264):       at com.google.android.gms.tasks.zzd.run(Unknown 
Source)                    
W/FirebaseMessagingPlugin( 7264):       at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
W/FirebaseMessagingPlugin( 7264):       at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
W/FirebaseMessagingPlugin( 7264):       at java.lang.Thread.run(Thread.java:818) 

请帮助我解决此问题。

您需要将google-services.json添加到项目中。

您需要将google-services.json添加到项目中。

如下所述,确保google-services.json包含在应用程序的正确位置。此外,试着运行一个清洁的颤振。如果问题仍然存在,是否可以包含初始化FCM的代码片段?是,运行颤振清理解决了问题。非常感谢。如下所述,确保应用程序中的google-services.json包含在正确的位置。此外,试着运行一个清洁的颤振。如果问题仍然存在,是否可以包含初始化FCM的代码片段?是,运行颤振清理解决了问题。非常感谢。