2013-11-22 76 views
0

我在我的應用中使用Google Maps V2,但是當我在新手機中運行它時,它總是要求更新Google Play服務。只有在手機上更新Google Play服務時,我的應用上的地圖纔會運行。 我的問題是,是否有任何方式使用地圖V2而不更新播放服務?Google地圖V2,Google Play服務更新

回答

1

您必須讓Google Play服務在您的設備上使用Google Maps V2。

Google Maps Android API v2作爲Google Play服務SDK的一部分發布。

See docs

0

根據什麼版本的谷歌Play的服務在那裏更新之前,你可以使用谷歌播放-services_lib相同(或更低)的版本。對於大多數情況來說,這不應該成爲問題,因爲APK會自動更新爲最新版本。一個例外是你必須在支持Android 2.2的設備時使用3.x版本。

0

我有同樣的問題,讓我告訴你有這個問題並沒有解決尚未

讓更多的Android手機地圖來看,你可以用一些較舊的谷歌編譯項目播放服務庫。

//in project's Build.gradle: 
 

 
dependencies { 
 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
 
    testCompile 'junit:junit:4.12' 
 
    compile 'com.android.support:appcompat-v7:23.4.0' 
 
    compile 'com.google.android.gms:play-services:9.0.0' 
 
}
變 「遊戲服務:9.0.0」 老版本和測試您的應用程序:

dependencies { 
 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
 
    testCompile 'junit:junit:4.12' 
 
    compile 'com.android.support:appcompat-v7:23.4.0' 
 
    compile 'com.google.android.gms:play-services:8.7.3' 
 
}

你可以看到所有播放服務版本here

我希望它有一點幫助。