Google Maps does not appear when Android is distributed

Asked 1 years ago, Updated 1 years ago, 58 views

I'm struggling with an unexpected problem when I try to put an app on the market.

I created an .apk file with the bulk>generate signed apk in Android Studio. This app contains Google Maps, so to register SHA-1

keytool -genkey -alias wrkey.keystore -keyalg RSA -validity 10000 -keystore wrkey.keystore

with the use ofCreate a keystore

keytool -list -alias wrkey.keystore -keystore wrkey.keystore

I got SHA1 using the and entered the Google API key site and registered for debug

The package name, SHA-1 certificate fingerprint, added the package with a different value for SHA-1.

In addition, the key value for src/release/google_map_api was also added the same value as debug.(The reason is that we did not create a new API key, but added a package to the key used in the existing debug.)

But I can't... The debug version works well. Make an apk file, transfer it to your phone, install it, and then run it. I'm desperate for help.

googlemap android

2022-09-22 12:42

1 Answers

I don't know if I can help you, but I'll answer it myself!

When you made the key in bulk>generate sign, you wrote down everything (I don't know if it's necessary to write everything down)

I turned on the execution window and gave the keytool -v-list -keystore location\keyname instead of the 2 lines of the above source.

(for example, keytool -v-list -keystore C:\APK_KEY\Key) If you do this, you write down the password and SHA1 comes out.

I copied SHA1 and created a new project and put the new API key value into the API key in Android. Of course, don't forget to write the API key on src/release/google_map_api!

We solved it in this way.

If you don't understand it well,

http://knoow.tistory.com/105You'll find this more helpful.

틀리Please let me know if there is anything wrong!


2022-09-22 12:42

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.