How to use Google Maps Android API by Google Play Services 11 on an Emulator with Android 8

你离开我真会死。 提交于 2019-12-24 08:21:59

问题


I want to run my Google Maps Application on an Android 8 Emulator. As Google is suggesting, one should use the Google Maps Android API provided by the Google Play Services in the Version 11.

For this I put compile 'com.google.android.gms:play-services-maps:11.0.0' in my gradle file.

When I start my emulator with android 8 its only providing google play services with version 10.9.30 and the map is not showing up.

I'm running the emulator with android studio 2.3.3 on Mac.

How can I get my Google Play Services to version 11 updated in order to use Google Maps Android API?

Thank you in advance!


回答1:


I updated my emulator with Android Studio 3.0 Preview. As you can see in the screenshot the Google Play Services is updated to version 11.0.55.

And also my grade file with compile 'com.google.android.gms:play-services-maps:11.0.0' is working now.

Further I'm using compileSdkVersion 26 and buildToolsVersion "26.0.0"

Also see my settings for my SDK Platforms and SDK Tools:



来源:https://stackoverflow.com/questions/44499458/how-to-use-google-maps-android-api-by-google-play-services-11-on-an-emulator-wit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!