Google Maps does not load on the physical device

0

I created a Google Maps app and the Genymotion emulator it loads normally but on a physical device it does not load completely (I'm using Android Studio). Here's a print screen of how it stays on a physical device:

To generate the AI-Key, I extract the SHA-1 fingerprint through the following command: keytool -list -v -keystore "C:\Users\menda\Desktop\Meus APKs\Chaves\googlemaps2.jks" -alias googlemaps -storepass 123456 -keypass 123456

I've exported the signed project with "debug.keystore" and still can not load Google Maps into a physical device (in the emulator it works perfectly). Here are the prints of the steps I took:

    
asked by anonymous 28.03.2016 / 16:59

1 answer

1

I was able to figure out what my problem was: I to export the APK file to a physical device I could not insert the API-Key into the file "google_maps_api.xml". I had before inserting it directly into the file "AndroidManifest.xml", replaced the setting: <meta-data android:name="com.google.android.geo.API_KEY" android:value="@string/google_maps_key" /> by

<meta-data
        android:name="com.google.android.geo.API_KEY"
        android:value="xxx_minha_api_key_xxx" />

Thanks to everyone who tried to help me.

    
30.03.2016 / 20:35