Google Maps Android V2 - Blank Screen

后端 未结 8 808
旧巷少年郎
旧巷少年郎 2020-12-10 19:01

I am implementing google maps for android. I created a test application and inserted all the permissions etc in that application and the application worked flawlessly.

相关标签:
8条回答
  • 2020-12-10 19:48

    2 possible reasons:

    1. this part:

     <uses-library android:name="com.google.android.maps"/>
    <meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="my api key"/>
    

    should right before the closing application tag.

    2. Most likely you have some sort of problem with your key. Try to generate a new by deleting the debug.keystore folder and running a project. then register it again via the console.

    you can use this guide I wrote to do just that:

    Google Map API V2 key

    Update:

    Check this for a second:

    <permission      android:name="com.shop.addtask.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>
    

    it looks that the package you set here is not the package of your application and should be:

      <uses-permission android:name="com.shop.shoppinglist.permission.MAPS_RECEIVE"/>
      <permission      android:name="com.shop.shoppinglist.permission.MAPS_RECEIVE" android:protectionLevel="signature"/>
    
    0 讨论(0)
  • 2020-12-10 19:48

    After everything fails, try to uninstall the app and try it again. It worked in my case.

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