简体   繁体   中英

Google Map Api V2 not showing Map on device

I am running sample code that is provided on Google Map Documentation for Google Map Api v2.The Code run successfully but Map is not loaded on the Device. Only White Screen is Shown on the Device. I am using 2.3.6 version android device.

Please Help me to resolve the issue

Check if u have the map key for the package name u provided while creating the map key. I was getting white map screen but i inserted map key of the package i was testing. Then i created new project but used the previous map key hence getting white screen.

Always remember you have to use new map key for each package you create. Genereally people forget that thing..(atleast i forgot to generate new key for new package).

Hope this will solve ur problems.

All the best

Most likely you're using release SHA1 fingerprint for generating Google API Key. Since you're using Eclipse for debugging your application is signed using debug key. So, you should use debug key instead to generate Google API key.

As soon as your app will be ready for publishing - just switch to release key.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM