Android Question Maven artifact not found: com.google.android.gms/play-services-measurement-api

aaronk

Well-Known Member
Licensed User
Longtime User
Hi,

I am using Firebase notifications in my app, and it was working all fine and now when I try and compile my app it's not working.

I have found Erel's thread: https://www.b4x.com/android/forum/threads/firebase-notifications-firebase-auth-issues.94200/#content

I have followed the above link and updated everything.

When I try and run the app it comes up with an error:
Maven artifact not found: com.google.android.gms/play-services-measurement-api

I can't seem to work out how to fix this?

I am running B4A on a Mac in a VM on Windows 10.
B4A Version 8.30
 

DonManfred

Expert
Licensed User
Longtime User
Update all Items with the SDK Manager and try to add a
B4X:
#AdditionalJar: com.google.android.gms:play-services-measurement-base
 
Upvote 0

aaronk

Well-Known Member
Licensed User
Longtime User
Update all Items with the SDK Manager
I did that, but looks like the following one wasn't part of the recommend items to install.

After doing a search in the B4A SDK Manager for 'measurement-api' it said "com.google.android.gms:play-services-measurement-api (Google Maven)" wasn't installed.

Soon as I installed that, it seem to fix the issue.

Since it was working in the past, thought I had everything installed, but guess something changed somewhere.
 
Upvote 0

scsjc

Well-Known Member
Licensed User
Longtime User
with SDK_Manager (from B4A), install :

com.google.android.gms/play-services-measurement-api
 
Upvote 0

fredo

Well-Known Member
Licensed User
Longtime User
27-08-_2018_17-19-55.jpg


With this components no error message:

CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)
GoogleOauth2
GoogleDrive
Maybe it helps, if you create an exclusive B4A folder for the Android SDK.
 
Last edited:
Upvote 0
Top