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
The Google Developers Console responds by displaying Key for Android applications followed by a forty-character API key. For example:
AIzaSyBdVl-cTICSwYKrZ95SuvNw7dbMuDt1KG0
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…