简体   繁体   中英

Problems executing an Android application which uses GoogleMaps .apk in a smartphone

I have recently developed an Android application which uses the GoogleMaps API and represents the points of the map. The application works well in the Android emulator, but it does not work when it is executed in a SmartPhone. When the map is represented all the points are shown but the map is not shown (it appears a white map with squares). I have generated the.apk whith the default.keystore : debug.keystore . I have tried to generate the.apk with a customized keystore and obtain the following result:

Keystore was tampered with, or password was incorrect.

Any solution for the program of the API of googlemaps in the smartphone? Does anybody know how to generate a new debug.keystore ?

Try to create a new keystore. use this new keystore for getting google map api key then run

The easiest way to make a new debug keystore is actually to let the tools do it for you. If you delete the existing keystore, the build tools will automatically generate a new one for you. Then, you can do the steps to get the hash and get the API key:

The default storage location for AVDs is in ~/.android/ on OS X and Linux, in C:\Documents and Settings\.android\ on Windows XP, and in C:\Users\.android\ on Windows Vista and Windows 7.

The next time you build, the build tools will regenerate a new keystore and debug key.

Full description of steps here: http://developer.android.com/guide/publishing/app-signing.html

You could use the same keystore as it is, to the device as well. The same keystore works for emulator as well

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