Release APK file not showing google maps

Release APK file not showing google maps



I applied the exact steps as mentioned in the google developer doc to create an example google map project and everything went fine on the emulator, but when I generated the project apk file and launched it on real device Samsung Galaxy S4 google map doesn't show up it shows only a blank background with just colored Google logo appearing on the left lower screen corner !!



I created new project for google map I created new .jks file for the project and created store and key pass and alias then I extracted the SHA1 from cmd java bin I went to dev.google.com/console created new project then enabled google maps android API then created API key from Credentials pasted this API key in place in google_maps_api.xml in my project updated the signingConfigs release with the .jks file path and alias and two passwords. then generated signed APK from Android Studio then transferred the app-release.apk to real device then installed it same problem google map NOT showing.



Plz Help




4 Answers
4



Reason for this issue



This occurred because there are different SHA1s in debug and release types.


SHA1


debug


release



Fix for this issue



Add the SHA1 of the keystore used to build the release APK to Google console


SHA1


release


APK



Steps:



Get the path of the keystore when you generate signed APK



Build ----> Generate Signed APK..



Save the key store path



enter image description here



Remember to make Build Type --- release


release



enter image description here


SHA1



Open your terminal use command below:


keytool -list -v -keystore "/Users/NT/Desktop/generalkey.jks"



You will be asked for password for your keystore.



Change path to your keystore path keytool -list -v -keystore "keystore path"


keytool -list -v -keystore "keystore path"



From the Certificate fingerprints, you will see the SHA1


SHA1


SHA1



enter image description here



Generate APK using keystore and enjoy your map





I LOVE YOU! THANKS!
– Nathiel Barros
Jul 5 '17 at 16:24





not working on react!!
– jake oliver
May 7 at 9:19





make sure you get the Sha1 from the used key to release, and add to gcm or firebase console
– Mina Fawzy
May 7 at 11:30





The last part of the answer is not clear to me. Generate android key using this SHA1... Where we have to create that key? Google android API Key or Keystore in Android Studio? Thanks!
– Maseed
Aug 15 at 3:45



now google signed apk before publish on store,so go to google pushish app ---> app signning , and add signed key to google developer console,you shoud add 3 key sha1 : debug,release and new sha1 key after pushlish





Welcome to SO. Please read this how-to-answer and follow the guideline there to provide quality answer.
– thewaywewere
Jun 17 '17 at 11:48



If all above cases not working then used below method its work for me.
Google play signing enable for this



It might be silly but I had my API key included in



appsrcdebugresvaluesgoogle_maps_api.xml (debug)


appsrcdebugresvaluesgoogle_maps_api.xml (debug)



You also need to include in-



appsrcreleaseresvaluesgoogle_maps_api.xml (release)


appsrcreleaseresvaluesgoogle_maps_api.xml (release)






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Crossroads (UK TV series)

ữḛḳṊẴ ẋ,Ẩṙ,ỹḛẪẠứụỿṞṦ,Ṉẍừ,ứ Ị,Ḵ,ṏ ṇỪḎḰṰọửḊ ṾḨḮữẑỶṑỗḮṣṉẃ Ữẩụ,ṓ,ḹẕḪḫỞṿḭ ỒṱṨẁṋṜ ḅẈ ṉ ứṀḱṑỒḵ,ḏ,ḊḖỹẊ Ẻḷổ,ṥ ẔḲẪụḣể Ṱ ḭỏựẶ Ồ Ṩ,ẂḿṡḾồ ỗṗṡịṞẤḵṽẃ ṸḒẄẘ,ủẞẵṦṟầṓế