I created one small app in which I used Google Maps API v2.
For testing and debugging, I used the default debug keystore that is generated named as debug.keystore.
I generated my SHA key that has to be provided for using maps and generated api key and used in my application. I signed the application using EXPORT wizard in eclipse and am creating my new key store for my app and generating application apk.
But now when I am trying to run this app on device the MAP is not displayed.
As I suspect this is due to new keystore for my app and i have registered my debug keystore SHA key to google console.
What am i doing wrong here and how can i fix it?
While signing an application with different
keystorefrom debug one, you should create anotherAPI_KEYusingSHA1generated from your currentkeystoreand register it inGoogle API Consoleand use that key forGoogle Maps. Your maps won't show up,becauseAPI_KEYis generated by the current keystore and your package name. Changing keystore file will cause yourMapViewto shows blank, becauseSHA1is different.So as a final answer, you should repeat all steps to generate an
API_KEYforGoogle Mapswith newSHA1.Edit: There are two options which you can use to create
SHA1fromkeystorefile.keytool -list -v -keystore <path_to_your_keystore>will give youSHA1.Eclipseif you try to sign your app with your keystore, at the end before saving your.apkfile it will shows youSHA1andMD5generated from your keystore. I think it was the second time when you try to sign apk.