Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/212.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.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中不可用的服务_Android_Firebase_Firebase Cloud Messaging - Fatal编程技术网

如何修复Android中不可用的服务

如何修复Android中不可用的服务,android,firebase,firebase-cloud-messaging,Android,Firebase,Firebase Cloud Messaging,我想将firebase添加到我的应用程序中,我使用以下路径添加了firebasefirebase 但当运行应用程序时,在日志中显示此错误: 03-30 16:33:14.741 1457-1575/com.example.mohammad.a1_firstfirebase W/GooglePlayServicesUtil: Google Play services out of date. Requires 10084000 but found 6599430 03-30 16:33:14.7

我想将firebase添加到我的应用程序中,我使用以下路径添加了firebaseTools->firebase
但当运行应用程序时,在日志中显示此错误:

03-30 16:33:14.741 1457-1575/com.example.mohammad.a1_firstfirebase W/GooglePlayServicesUtil: Google Play services out of date.  Requires 10084000 but found 6599430
03-30 16:33:14.742 1457-1457/com.example.mohammad.a1_firstfirebase W/FA: Service connection failed: ConnectionResult{statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null, message=null}
03-30 16:33:34.846 1457-2691/com.example.mohammad.a1_firstfirebase D/FirebaseInstanceId: background sync failed: SERVICE_NOT_AVAILABLE, retry in 60s
我添加了以下依赖项:

{
      classpath 'com.google.gms:google-services:3.0.0'

     compile 'com.google.firebase:firebase-messaging:10.0.1'
}

apply plugin: 'com.google.gms.google-services'

我如何解决这个问题?我需要此帮助,请帮助我将google-services.json文件添加到您的资源文件中

可能重复您报告的内容是警告,而不是错误。您正在测试的设备没有最新版本的Google Play services应用程序。在商店中搜索并更新它。无论如何,即使没有更新FCM也可以正常工作。但分析可能不会。