Using Google Maps API key and no Map


Having issues with my app, i downloaded the apk, check if my location is activated on my phone, no map visible and the app crashes few seconds after.

Here is the code:

I have a API Key on google cloud, i used it on my project, checked if the geolocation API, places API and maps SDK for android were ok, but the app keeps not showing the map and then crashing when i test it, pls help.

Hi dear,

Could you give us a bit more detail?
For example, does the error happen right when the app opens or when you perform some action?
Have you tried using adb to understand what error is occurring?

Also, if you want, you don’t have to use the Location Sensor, Google Maps directly provides .OnLocationChanged, from which you can retrieve latitude and longitude.

sorry, i’m short on time, had to switch to a quicker project, but thanks for the tips