0
这里是我的gradle.app 应用插件:“com.android.application”Google Play服务已过期。需要9877000但发现9875480与谷歌火力
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
}
defaultConfig {
applicationId "com.example.joshpc.bluetoothattendee"
minSdkVersion 19
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.0.0'
compile 'com.google.android.gms:play-services-gcm:9.8.0'
compile 'com.google.gms:google-services:3.0.0'
compile 'com.google.firebase:firebase-auth:9.8.0'
compile 'com.google.firebase:firebase-core:9.8.0'
compile 'com.firebase:firebase-client-android:2.5.2'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
当我尝试运行我的Android模拟器,它给我这个读出:
W/GooglePlayServicesUtil: Google Play services out of date. Requires 9877000 but found 9875480
我试图9.6.0不作为火力点工作恢复火力和谷歌播放服务要求9.8.0
我在展台更新了我的API 25 android系统的图像单独的SDK经理。
我的谷歌播放存储库是最新的。
如果我改变gradle这个呼吁发挥服务9.8.7它给我的错误:
,所以我不太清楚如何去解决这个问题,或者更新播放服务,当SDK说它是最新的,我不能恢复所需的版本。 请注意,“安装存储库和同步”不可点击/不连接任何东西。我检查了版本库及其最新版本
请参阅我的[答案](http:// stackoverflow.com/questions/37499006/firebase-setup-on-android/37499376#37499376) –
我目前正在尝试API 24.将看看它是否工作 – ThePeskyWabbit
它显示你修正的错误与我收到的错误不同。它解决了firebase和创建链接就好,但错误是关于谷歌播放服务。 – ThePeskyWabbit