Skip to content

Why does my GMap build show a blank screen? #225

Answered by hufman
claww asked this question in Q&A
Discussion options

You must be logged in to vote

This is usually because the key didn't get included into the build properly, or the key doesn't have the correct permissions in the Google Cloud Console.

In Android Studio, use the Build > Analyze APK tool to open your output APK's AndroidManifest.xml, and you should see your key in the <meta-data android:name="com.google.android.geo.API_KEY" android:value="{KEY}"> location. If not, Gradle didn't pick up the key properly from gradle.properties.

If that does show the correct key, then the other possibility is that the key doesn't have the correct API permissions. The definitive proof of this will be adb logcat output showing errors, but they are difficult to find among all the other log me…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@claww
Comment options

@hufman
Comment options

@claww
Comment options

@hufman
Comment options

@claww
Comment options

Answer selected by claww
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants