作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想将 firebase 添加到我的应用程序中,并使用以下路径添加了 firebase:Tools -> 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 文件添加到您的资源文件
关于android - 我如何在 Android 中修复 SERVICE_NOT_AVAILABLE,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43117449/
我是一名优秀的程序员,十分优秀!