I am trying to run the following example to display route directions between two locations on Google Map.
However, I keep getting the following error in Android Studio run tab when I click on the map to create two markers:
DownloadTask : { "error_message" : "This API project is not authorized to use this API.", "routes" : [], "status" : "REQUEST_DENIED"}
Also, a toast message shows "No route found".
I have the following APIs enabled in Google Developers Console:
- Maps SDK for Android
- Directions API
- Distance Matrix API
- Geocoding API
- Maps Embed API
- Maps JavaScript API
- Places API
However, the error message doesn't seem to have changed between enabling each of the APIs.