Android Question Google maps - Authorization failure

leitor79

Active Member
Licensed User
Longtime User
Hi,

I've just started with this: https://www.b4x.com/android/forum/threads/google-maps.63930/

I get a blank map and some unfiltered logs.

First of all, the manifest step, I don't know if I did it right:
- Add Google Play Services Base snippet from this link to the manifest editor.
No need to add anything related to Firebase.
So, that means to add only?
B4X:
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)

Second, I don't have "Google Maps API v2" in the available APIs in the developer's console. So, I've enabled this ones:

2018-12-04_15-55-16.png

Third; regarding google-play-services.jar, I have and "old?" one (the "copia" one, the 1.4mb) in the libraries folder, and replaced it with the 5.6mb one.
2018-12-04_15-56-15.png


That being done, now the unfiltered logs say:

Authorization failure. Please see https://developers.google.com/maps/documentation/android-api/start for how to correctly set up the map.
In the Google Developer Console (https://console.developers.google.com)
Ensure that the "Google Maps Android API v2" is enabled.
Ensure that the following Android Key exists:
API Key: AIzaXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Android Application (<cert_fingerprint>;<package_name>): AB:AB:AB:AB:AB:AB:AB:AB:AB:AB:AB:AB:AB;package.name
Local module descriptor class for com.google.android.gms.googlecertificates not found.
Considering local module com.google.android.gms.googlecertificates:0 and remote module com.google.android.gms.googlecertificates:4
Selected remote version of com.google.android.gms.googlecertificates, version >= 4

The API key matches with the one here:
2018-12-04_15-59-06.png



Thank you!
 

leitor79

Active Member
Licensed User
Longtime User
Hi.

I've solved this issue.
I had the wrong project selected in the google developer's console when created the credentials.

Regards,
 
Upvote 0
Top