2016-11-12 79 views
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它给我的错误:

enter image description here

,所以我不太清楚如何去解决这个问题,或者更新播放服务,当SDK说它是最新的,我不能恢复所需的版本。 请注意,“安装存储库和同步”不可点击/不连接任何东西。我检查了版本库及其最新版本

+0

请参阅我的[答案](http:// stackoverflow.com/questions/37499006/firebase-setup-on-android/37499376#37499376) –

+0

我目前正在尝试API 24.将看看它是否工作 – ThePeskyWabbit

+0

它显示你修正的错误与我收到的错误不同。它解决了firebase和创建链接就好,但错误是关于谷歌播放服务。 – ThePeskyWabbit

回答

0

API级别25(7.1.1)的模拟器映像没有通过最新的Play服务和其他API级别进行更新。现在,如果你想使用客户端库版本9.8.0,你应该测试对照级别21-24,因为更新已在11月11日提供给他们。

相关问题