Running google map application on Android Emulator

后端 未结 6 745
野趣味
野趣味 2020-11-30 13:07

My application uses Google Maps v2. This application successfully working on Android powered device. I tried to run the same application on Android emulator. The target of m

6条回答
  •  伪装坚强ぢ
    2020-11-30 13:58

    1. To display Google map in the emulator, you can use a "browser key" from google developer console, instead of the Android key.This is because the android key is private therefore will only display the map on a real device, however by using a browser key, in your manifest file , you can run your map on an android emulator. To create a browser key goto "https://code.google.com/apis/console/" , for the website, leave it blank and just click create. Use the generated key in your manifest file an this should display the map.

    2. I also suggest you use install gene-motion emulator, download and install google play services on it and you will be good to go.

提交回复
热议问题