-1

The google map doesn't load when i run the APK of google map layout with my key on Android Device. There is no cache to be removed and any sort of data to be removed. Please help!

In MapActivity.java:

LatLng sydney = new LatLng(-34, 151);
mMap.addMarker(new MarkerOptions().position(sydney).title("Marker Sydney"));
mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney)); 

Android screenshot

Savir
  • 17,568
  • 15
  • 82
  • 136
Umer Khalid
  • 330
  • 2
  • 16

1 Answers1

0

Hey it seems quite obvious from your problem that the issue us with the key.

There are many solutions available but they all are old.

You can go through the following steps to obtain your Key:

  1. Go to Google API Console.

  2. Create a new project.

  3. Fill all the entries.

  4. To get your SHA1 fingerprint go here.

  5. After successfully creating you project now you have to enable all the API's separately.

  6. Whichever API you have to enable go to that API and you have to enable it.

Hope this clarifies your problem.

Thank you

Community
  • 1
  • 1
nimi0112
  • 2,065
  • 1
  • 18
  • 32