user2034953
user2034953

Reputation: 21

Google Map not showing with signed APK

I am working on google maps in android . google map is opening by using debug.keystore on my local system but issue is that when i build signed apk then google map not show.however i have also generate SHA1 key from my app keystore then generate new api key but still google map not showing please help as soon as possible

Upvotes: 0

Views: 661

Answers (1)

Sercan Ozdemir
Sercan Ozdemir

Reputation: 4692

From google docs:

In release mode, you sign your app with your own certificate:

Create a keystore. A keystore is a binary file that contains a set of private keys. You must keep your keystore in a safe and secure place.

Create a private key. A private key represents the entity to be identified with the app, such as a person or a company.

So you don't have to generate a new api key. Just generate a new SHA1 for your private key file. After that you have to add it's SHA1 hash into google maps android api section that you have already generated a api key from google developer console.

Because you shouldn't change your manifest file for 2 api keys. Just you have to add SHA1 hashes for both keys. (debug.keystore and your own key file)

Here's a screenshot:

enter image description here

Sorry for bad censor :)

Upvotes: 1

Related Questions