I've been struggling for weeks with an issue with displaying a simple map fragment in my app. I followed all Google steps so I think my code is correct.
Then I saw this line in the Google comments :
You can define the keys for the debug and release targets in src/debug/ and src/release/.
I switched my IDE tree from Android to Project to see the release and debug paths and I created a new API key, restricted carrefully.
Now the issue is : how can I force android studio to take the release key first in my manifest ?
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="@string/google_maps_key" />
Buidling my gradle file is always using the debug key so when I upload a release on app store, map isn't showing. Im pretty sure the problem comes from here.
I also tried to enter directly the key in the manifest but when I build for release it puts the "@string/google_maps_key"
again.