Google Map Displaying Grey Squares

前端 未结 3 1842
陌清茗
陌清茗 2021-01-25 01:51

I\'ve made a very simple app that just displays a Google map. However, it only seems to be displaying gray squares.

I\'ve troubleshooted and have done virtually everyth

相关标签:
3条回答
  • 2021-01-25 02:04

    I had the same error ! I tried everything, so a try this tutorial below and it worked!!!!

    TUTORIAL

    0 讨论(0)
  • 2021-01-25 02:18

    You need to add

      <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />  
    

    into you manifest

    Note: If you are using both NETWORK_PROVIDER and GPS_PROVIDER, then you need to request only the ACCESS_FINE_LOCATION permission, because it includes permission for both providers. (Permission for ACCESS_COARSE_LOCATION includes permission only for NETWORK_PROVIDER.)

    0 讨论(0)
  • 2021-01-25 02:20

    The problem was that Mike was using an API key generated with the release keystore instead of the debug keystore that eclipse uses when compiling the apk.

    0 讨论(0)
提交回复
热议问题