Android Question Maven artifact not found: com.google.firebase/firebase-messaging

valentino s

Active Member
Licensed User
Longtime User
Reading the firebase notification tutorila here I've tried to start a demo, but if failed with the error:

Maven artifact not found: com.google.firebase/firebase-messaging

So I've read the others comment on the forum, but I wasn't able to solve.

I'm quite sure that depends from folders, but I can't solve.

These are the screenshots of an empty new b4a project with firebase library loaded. It gives me the error.

Any idea ?

The error and "additional library" path:


Where my files are located:


the sdk manager window:
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The paths don't look correct.

1. The additional libraries field has nothing to do with Android SDK folders. Don't point it to Android SDK.
2. The path to android.jar points to ...\Android\SDK
The path of the Maven repositories points to ...\Android\android-sdk.

I recommend you to delete the complete Android SDK and install it again under c:\android.
 
Upvote 0

valentino s

Active Member
Licensed User
Longtime User
YES, (obviously) works.
Two things learned:

1) install sdk on c:\android
2) additional libraries are for the libs provided only by b4a developers (not android sdk).

Thanks once more.
 
Upvote 0

ZenWhisk

Member
Licensed User
Longtime User
I have only one path, and I get the same message, what am I doing wrong ?
Firebase is under anywhere software libraries as with the other jars. (C:\Program Files (x86)\Anywhere Software\Basic4android\Libraries)
 
Upvote 0

ZenWhisk

Member
Licensed User
Longtime User

Thank you Erel, that did the trick. I saw the previous post about android/sdk here and android-sdk there, and I saw that my names were ok (android-sdk). Simply installing again under C:\android did the trick, I don't understand why, but lesson learnt. Thanks
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…