2016-10-25 112 views
10

我想實現在Android項目火力點,但總是得到:
谷歌Play服務的過時的。 Requires 9877000 but found 9683480
我graddle項目/應用程序文件類似:如何更新谷歌Play服務9.8.7

... 
compile 'com.google.firebase:firebase-core:9.8.0' 
    compile 'com.google.firebase:firebase-database:9.8.0' 
    compile 'com.google.firebase:firebase-auth:9.8.0' 

} 

apply plugin: 'com.google.gms.google-services' 

dependencies { 
     classpath 'com.android.tools.build:gradle:2.2.2' 
     classpath 'com.google.gms:google-services:3.0.0' 

我創建歌Nexus S仿真器API 23和目標:的Android 6.0(谷歌的API)x86_64的

Inside emulator Google App Servi CES版本83年9月6日

我應該怎麼做才能夠運行的火力爲不知道如何安裝或更新了:/
我是新來的Android和不知道是不是我我錯過了一些小事。

回答

16

更新後的Android工具(包含Android Emulator系統映像)尚未推出。只有一次,您的模擬器纔會具有Google Play Services 9.8,這是Firebase SDK 9.8的先決條件。

如果您想在模擬器上測試,那麼您現在必須將應用降級到Firebase SDK 9.6。

如果您部署到物理設備,它可能已經具有最新版本。

+0

你是什麼意思最新的SDK?我安裝了新鮮的android studio在SDK管理器中沒有什麼可更新我安裝了Android 6.0(API 23)Intel x86 Atom 64系統映像我還需要安裝什麼軟件才能在模擬器中獲得最新的GPServices? – 1110

+0

嗯......我不確定帶有最新播放服務的模擬器圖像是否可用尚未檢查... –

+0

什麼前夕r我試過我總是有9.6.83 – 1110

0

一個可能的演練將降級模擬器的API版本(例如,從23到20)通過創建一個新的仿真器(工具 - > Android的 - > AVD管理器 - >創建新的虛擬設備開。第二個屏幕,選擇你的首選(例如20)API版本

相關問題