Down Tips

Way To Learn

Android Tips

How is Google Maps showing in Android activity?

If you have not shown Google Maps on the entire screen in your Android app.

If you have a problem the Google Map does not display a map, only the Google logo in the bottom left corner.

DownTips Gives you the best solution.

Here’s the solution.

You need to enable Google Maps API from Google Console for your project. Also, you need to download JSON files from the console.

1. Go to Google Console

2. click on your project.

3. Click on the library section from the left menu panel. see below image

  1. In Google Maps API, click on Google Maps Android API
  2. Then enable that.
  3. Now Goto Firebase console
  4. Click on your project go to project settings and download the JSON file.
  5. Add that JSON file to your application.

Here is the another solution:

  1. The Google Console has Keys like our projects and is also auto-created.
  2. But for the map-related task use only the following key.
  3. But, Further keep in mind, Enable all the Google map API.
  4. The Google Console Has a Key whose Name is
  5. **”Browser key (auto-created by Firebase)”**

Put this key in your project file in build.app as an “SERVER_KEY”

Check the “Package Name and SHA-1 Key” added in a Key which we used for MAP function.

Then your Map is Enabled.

Why App crashing when using .setText – Kotlin in Android Studio