Google Map key in Android?

后端 未结 3 410
慢半拍i
慢半拍i 2021-01-26 07:27

I am developing an android app in which i have to show map view i have done it once in a previous app but the key i used in the previous is not working int his app . It is just

相关标签:
3条回答
  • 2021-01-26 07:53

    Are you trying to run the app on emulator? if yes Then use the default key , I f you are signing out the apk then running on a device use the same key to sign as you used for the last app and use the generated google map api key . Are you getting grids as output ?? Two possible reasons key or internet(internet over proxy)

    0 讨论(0)
  • 2021-01-26 07:58

    Map Key is Only restricted to a Single Machine as it includes Java libraries, JDK and all, so debug.keystore is also a single file and by this you will always get a UNIQUE Map Key.

    You will have to Generatea new Map Key only when you Shift your Machine(CPU) or reinstall your OS.

    Another advice to Just remove code of Overlay and just Check it again is it working fine. Or there is a problem in Overlay Class. Clean and Rebuild the Application.

    Hope you have given these permissions also.

    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    
    0 讨论(0)
  • 2021-01-26 08:18
    amandeep there are two kinds of key for maps debug key and release key 
    debug key is for your system on which you are developping your application 
    that can be used for every application and the seconde one is release key that is different for every application and for each application you have to create new one
    

    http://code.google.com/android/add-ons/google-apis/mapkey.html

    Difference between Debug and Signing key

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