我正在尝试将Firebase包含在我的Android项目中.运行它,抛出这个错误:
Google Play services out of date. Requires 11910000 but found 11577470
compile 'com.google.android.gms:play-services:9.6.0'
这对我不起作用,因为我使用SDK 26并且它会抛出与其他库不兼容的错误.
这是我的gradle文件:
(模块):`
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
classpath 'com.google.gms:google-services:3.1.1'
}
`应用程序:
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.example.project"
minSdkVersion 24
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
dependencies {
implementation filetree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.google.firebase:firebase-messaging:11.8.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
compile 'com.google.firebase:firebase-core:11.8.0'
compile 'com.google.android.gms:play-services:11.8.0'
}
申请插件:’com.google.gms.google-services’
And as you can see here my Google Services is updated as well.
在我的日志中,我收到以下错误:
I/FirebaseCrash: Sending crashes
W/FirebaseInstanceId: No response
E/FirebaseInstanceId: Topic sync Failed: TIMEOUT
E/FirebaseInstanceId: Topic sync Failed: SERVICE_NOT_AVAILABLE
W/FirebaseInstanceId: No response
E/FirebaseInstanceId: Topic sync Failed: TIMEOUT
解决方法:
我遇到了同样的问题,不得不转向使用谷歌应用程序的API 21模拟器图像.那个更新,更有效.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。