2016-11-12 80 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日提供給他們。

相關問題