Reputation: 1856
i have some problem, my app works fine, but when i load it in Play market, maps does not works correctly. I make next:
keytool -list -v -keystore C:\User\Name/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android
SHA1;com.kostya.app
Where is my mistake? I read this article. Together we can create nice tutorial how to sign app using google maps v2. How to test application at once after loading in play market, without weithing some ours.
Upvotes: 5
Views: 9383
Reputation: 143
after publishing the app on play store. on Google Play Console Goto: Release Management >App Signing from "App signing certificate" copy SHA1 and paste it on Google cloud platform API console.
Upvotes: 4
Reputation: 591
Just Add the apikey to debug>res>values>google_maps_api.xml
add in release>res>values>google_maps_api.xml files.
Upvotes: 1
Reputation: 141
I used Android studio to generate the release keystore. After tried many ways for two days I finally got this to work. The problem is that when generating signed APK in Android Studio either by choosing the existing keystore or creating a new one, the default format for the keystore file is ".jks". That is the problem. After I changed that to ".keystore" and generated the release apk, and then copied the SHA1 into google console. The map can finally be showing.
Upvotes: 0
Reputation: 623
Just generate SHA1 using
keytool -list -v -keystore mystore.keystore
go and add the package name and SHA1 fingerprint to the already generated
Upvotes: 0
Reputation: 5896
When your are creating keystore for creating signed apk you have to do this.
set the password the same like in your created keystore (not android as in debug mode)
keytool -list -v -keystore ~/.android/ YOUR_KEYSTORE -alias YOUR_PROJECT_NAME
more help find here
Upvotes: 9
Reputation: 17083
You have to create a production keystore, you should not use the debug.keystore.
Check out the documentation.
Upvotes: 1