Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
200 views
in Technique[技术] by (71.8m points)

android - Google map v2 doesn't showing after publishing in play market

I have a problem with my google map in my android app after publishing. In developer console I've enabled "Google Maps Android API v2", added SHA1 key + package: 4D:8A:1F:C1:2D:8F:AD:EE:13:6A:AE:D0:FB:98:56:A1:76:70:84:2A;com.mypackage, got API KEY and added it in android manifest.

But after I publish my app I got a message:

Ensure that the "Google Maps Android API v2" is enabled. Ensure that the following Android Key exists: API Key: AIzaSyBt8ERGTRg8dMQy62FHoDbhaVs7YrG52iA Android Application (;): AA:08:25:A3:7B:3C:DD:C3:2D:7C:66:CE:67:47:8D:54:B9:3B:8A:21;com.mypackage.

As you can see SHA1 in message and in my project are different. Why? Whats wrong?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

No need to change the code if the map working good in normal .apk

You need to create a relase certificate fingerprints below is the step to generate the release certificate fingerprints

1.once you make a sign .apk,generate a release certificate signature and update on google console the google map aumocatically works.

2.Go to the Google Developers Console and log in with your Google account. Select the Google Maps API for Work Project from the project drop-down in the top left of the Google Developers Console. This project was created for you when you ordered the Google Maps Mobile SDK for Work. If you have not yet purchased access to the SDK, please contact sales.

3.In the sidebar on the left, select Credentials.

4.Click Create New Key and then select Android key.

5.In the resulting dialog, enter the SHA-1 fingerprint generated by the keytool, then a semicolon, then your application's package name. For example:

BB:0D:AC:74:D3:21:E1:43:67:71:9B:62:91:AF:A1:66:6E:44:5D:75;com.example.android.mapexample

  1. The Google Developers Console responds by displaying Key for Android applications followed by a forty-character API key. For example:

    AIzaSyBdVl-cTICSwYKrZ95SuvNw7dbMuDt1KG0


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...