Google cards do not work during the release, I do not know what to do, tell me, please

AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.bellkrossy.subwaykiev10"> <!-- The ACCESS_COARSE/FINE_LOCATION permissions are not required to use Google Maps Android API v2, but you must specify either coarse or fine location permissions for the 'MyLocation' functionality. --> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <!-- The ACCESS_COARSE/FINE_LOCATION permissions are not required to use Google Maps Android API v2, but you must specify either coarse or fine location permissions for the 'MyLocation' functionality. --> <!-- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> --> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme" android:name="android.support.multidex.MultiDexApplication"> <activity android:name="com.bellkrossy.subwaykiev10.MainActivity" android:screenOrientation="portrait"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name="com.bellkrossy.subwaykiev10.RedActivity" android:screenOrientation="portrait" /> <activity android:name="com.bellkrossy.subwaykiev10.RedActivityList" android:screenOrientation="portrait" /> <activity android:name="com.bellkrossy.subwaykiev10.BlueActivity" android:screenOrientation="portrait" /> <activity android:name="com.bellkrossy.subwaykiev10.BlueActivityList" android:screenOrientation="portrait" /> <activity android:name="com.bellkrossy.subwaykiev10.GreenActivity" android:screenOrientation="portrait" /> <activity android:name="com.bellkrossy.subwaykiev10.GreenActivityList" android:screenOrientation="portrait" /> <!-- <uses-library android:name="array"></uses-library> --> <!-- The API key for Google Maps-based APIs is defined as a string resource. (See the file "res/values/google_maps_api.xml"). Note that the API key is linked to the encryption key used to sign the APK. You need a different API key for each encryption key, including the release key that is used to sign the APK for publishing. You can define the keys for the debug and release targets in src/debug/ and src/release/. --> <activity android:name="com.bellkrossy.subwaykiev10.MapsActivity" android:label="@string/title_activity_maps" /> <!-- The API key for Google Maps-based APIs is defined as a string resource. (See the file "res/values/google_maps_api.xml"). Note that the API key is linked to the encryption key used to sign the APK. You need a different API key for each encryption key, including the release key that is used to sign the APK for publishing. You can define the keys for the debug and release targets in src/debug/ and src/release/. --> <meta-data android:name="com.google.android.geo.API_KEY" android:value="@string/google_maps_key" /> </application> </manifest> 

google_maps_api (debug)

 <string name="google_maps_key" templateMergeStrategy="preserve" translatable="false"> AIzaSyDykdKaezq8cGyReuh_ExSf71sIHYu66k </string> 

google_maps_api (release)

 <string name="google_maps_key" templateMergeStrategy="preserve" translatable="false"> AIzaSyDykdKaezq8cGyReuh_ExSf71sIHYu66k </string> 
  • No need to change the question. Ask a new one - YuriySPb

1 answer 1

You need to check if there are fingerprints of both debazh and release key in the settings in the console of the Google SHA-1

  • SHA-1 is, and what for prints debazhny and release key? - Alina Boguslavskaya
  • For putting it in the market you will need a release key. You need to create it yourself. And his imprint will also be added to the Google console - YuriySPb
  • and instead of the usual SCHA-1 (which is registered in google maps in the documentation office) key, do you need to add a fingerprint of the release key? and then in the manifesto throw it? - Alina Boguslavskaya
  • Look again in the documentation - you need to add fingerprints of all your keys. Debate and release. Perhaps you are using SHA-1 from a google example. I don’t remember where to add, in the browser, it seems, I need to add this to the developers console. - Yuriy SPb