use*_*328 26 android android-emulator google-places-api google-play-services
我正在尝试在我的Android应用中使用Google Places API的PlacePicker.但是,每当我尝试创建选择器时,都会收到以下错误消息:
Google Play services out of date. Requires 7095000 but found 6774470
Run Code Online (Sandbox Code Playgroud)
不幸的是,我依赖于模拟器上的测试,因为我没有物理设备.模拟器的图像是API级别22 x86,具有Google API目标.此外,我试图通过build.gradle文件包含Google Play服务库:
'com.google.android.gms:play-services:7.+'
Run Code Online (Sandbox Code Playgroud)
此外,我还在SDK Manager中更新了Google Play服务.我究竟做错了什么?如何更新我的Google Play服务,以便我可以使用Places API?
当我在 Android Wear 上使用 Google-Play-services 时,我遇到了类似的问题,然后我通过更新我的 Android Wear 应用程序版本来解决它。(因为较新的 Android Wear 版本包含较新的 Google-Play 服务)
此问题是由于您设备上的Google-Play-services版本太旧引起的,您应该更新设备上的Google-Play-services版本。
对于模拟器,您需要更新模拟器上的 Google-Play-services 而不是更新 SDK。
| 归档时间: |
|
| 查看次数: |
26011 次 |
| 最近记录: |