Android Question Maven artifact not found

Cadenzo

Active Member
Licensed User
Longtime User
I just updated the SDK-Manager (some warnings in the end) and now I cannot run any project.

B4X:
B4A Version: 9.50
Java Version: 11
Parsing code.    (0.08s)
Building folders structure.    (0.27s)
Compiling code.    (0.19s)
Compiling layouts code.    (0.02s)
Organizing libraries.    Error
Maven artifact not found: androidx.lifecycle/lifecycle-viewmodel-savedstate

I copied the folder "m2repository" to C:\android\extras\google as explained here, but still same error.
 

DonManfred

Expert
Licensed User
Longtime User
open sdkmanager, search for savedstate and install the missing lifecycle-viewmodel-savedstate
 
Upvote 0

Cadenzo

Active Member
Licensed User
Longtime User
Thank you, DonManfred, that brought me two steps forward. After the savestate, some projects are running. But my main project was missing something like "transport". I also could find and install it. But now the error is: Maven artifact not found: com.google.dagger/dagger

and dagger I can not find in the SDK-Manager. :-(
 
Upvote 0

Cadenzo

Active Member
Licensed User
Longtime User
I am using Firebase notifications in this app. Everything worked an than I (don't know why) updated the SDK-Manager. Now I have big problems.
 
Upvote 0

Cadenzo

Active Member
Licensed User
Longtime User
Puh, got it!
After updating the Google Firebase Lib (point 2 here) the dagger was OK, but the next missing: firebase-encoders-json, I could find and install it with SDK-Manager. And now finally it works :)
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I've added androidx.lifecycle:lifecycle-viewmodel-savedstate to the recommended items.

com.gooogle.firebase:firebase-encoders-json was already there. I guess that you are using an old version of B4A Sdk Manager. The latest version is 3.60.

It is included in B4A v9.80 (currently in beta).
 
Upvote 0
Top