简体   繁体   中英

google map not working when .apk is installed in Device

I have created a project as per instructions at http://blog-emildesign.rhcloud.com/?p=435 which was instructed at some other query.

It was not working in Android Virtual Device which came with the eclipse I downloaded. I was getting some error regarding GPU V2 was required. So I configured Genymotion virtual device with Eclipse and its working very smoothly.

After that I exported the project and created .apk file. Then I unistalled the app from the virtual device and re-installed the .apk file which was extracted. On doing that the map is not getting displayed. The same thing is occuring when the file is installed in a real device (Samsung Note II).

Please help!!

Use Something like this:

  1. Update the google play services in the SDK.

  2. Manually uninstall the App from device and restart the device. i have tried it and its going perfectly bro

Also do one thing get the new api key to edited the new sh1 code from https://code.google.com/apis/console/

you can get your sh1 code from window- preference-android-buid

Try the steps in https://developers.google.com/maps/documentation/android/start

One general thing is , If your map is not getting displayed then your Key is wrong .

You should generate a separate key for running from eclipse using debug.keystore and separate key for .apk files using yourapp.keystore that you generate while taking .apk file .

It seems to be debug/production keystore issue. Just follow this tutorial: https://developers.google.com/maps/documentation/android/intro

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