Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Google Maps not showing

I got the SHA1 from Eclipse Windows\Preferences\Android\Build, entered it in the API console in the form of key com.mypackage, got the API key entered it in the manifest and the map is still not showing.

I tried with the cmd and still not working, it shows the same SHA1 as Eclipse.

Am I missing something?

like image 284
user43051 Avatar asked Aug 04 '26 11:08

user43051


1 Answers

In my case google map was not rendering. Only Goolge was displayed below left corner

I have Followed below steps

  1. created again new project in Google api console.
  2. Passed my SHA1 key then semicolon then your application package name Your_SHA1_Key;Your_APP_PACKAGE_NAME
  3. You will get one API_KEY

Then mention below things in your manifest

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

<meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" />
<meta-data
            android:name="com.google.android.maps.v2.API_KEY"
            android:value="YOUR_API_KEY" /> 

It may help you.

All the best.

like image 172
Sujit Acharya Avatar answered Aug 07 '26 00:08

Sujit Acharya