In Version 2 Map view does not show map

后端 未结 18 1712
星月不相逢
星月不相逢 2020-12-14 18:07

Map Activity doesn\'t showing map, it\'s appear as just white screen with zoom control buttons. Manifest File like this :



        
相关标签:
18条回答
  • 2020-12-14 18:36

    I changed package name and update the console. I had everything correct (correct SHA1 key, package name and API key in manifest) but still got the same error message.

    I had to uninstall app and restart phone for the issue to go away. It seems something was being cached.

    0 讨论(0)
  • 2020-12-14 18:37

    Maybe the key isn't correct. You can try the following thing:

    • Be sure you Enter your right Package name like this
    • Test on a real device which updated latest google play. Or use emulator with this guide
    • Active google map api v2 for android at google console site enter image description here

    0 讨论(0)
  • 2020-12-14 18:37

    This is keystore issue on 99%.

    1) I use for release and debug the same file debug.keystore which I copy from C:/Users/EEfimenko/.android/debug.keystore to C:\Users\EEfimenko\Android\MyApp\app folder for access directly like to 'debug.keystore' without "C:/Users/..." link

    2) Then I add point to it from build.gradle (Module: app) file in 'android {': signingConfigs { debug { storeFile file('debug.keystore') } release { storeFile file('debug.keystore') } }

    3) Run "keytool -list -v -keystore debug.keystore" command from cmd from C:\Users\EEfimenko\Android\MyApp\app folder and mix resulted SHA1 fingerprint with name of applet: FR:TY:CG.....YF:ER;com.myapp.nameofit

    4) then I go to https://code.google.com/apis/console/b/0/?noredirect to:

    a) Services and enable "Google Maps Android API v2" to ON state

    b) put FR:TY:CG.....YF:ER;com.myapp.nameofit in "API Access" like Create new Android Key

    Now you can see your map with key again like at beginning without key!:)

    0 讨论(0)
  • 2020-12-14 18:39

    I couldn't get it to work until I added the following inside the application tag of my manifest:

    <application>
    ...
       <uses-library android:required="true" android:name="com.google.android.maps" />
    ...
    </application>
    

    Hope this helps!

    0 讨论(0)
  • 2020-12-14 18:40

    many times the problem comes from not adding the google services support in the permissions in the manifest :

    check this permission is present in your manifest :

    <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
    
    0 讨论(0)
  • 2020-12-14 18:41

    Here's what I did.. 1) Changed the workspace. 2) From Lance Nanek's website, http://permalink.gmane.org/gmane.comp.handhelds.android.devel/98066 , it appears that - with the new library feature, you don't specify the Android projects you depend on in the Java Build Path section of the Properties. You do it in the Android section of the Properties.

    and so, goto Application Project's Properties in Java Build Path -> hit the Projects - select library and remove it. That solved my problem !!

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