Java Question androidx.media2:media2-session produce error

Pendrush

Well-Known Member
Licensed User
Longtime User
B4X:
#AdditionalJar: androidx.media2:media2-session
will produce error:
Same error with
B4X:
#AdditionalJar: androidx.media2:media2-widget
and
#AdditionalJar: androidx.media2:media2-player

Is there any solution?
 

moster67

Expert
Licensed User
Longtime User
MIght be due to fact that the jar includes Java 8 features and needs to be "desugared".
See this thread which might resolve your issue
 

Pendrush

Well-Known Member
Licensed User
Longtime User
androidx.media2:media2-widget
androidx.media2:media2-session
androidx.media2:media2-player

All are downloaded with SDK Manager, why is not desugared after download?
 

Pendrush

Well-Known Member
Licensed User
Longtime User
As Android Studio do it as it needed I don't see any reason why SDK Manager don't do it in the same way.
This will be a problem to do on my local computer as these 3 have few more dependencies and then need to be included in library. As they can be downloaded and updated with with SDK Manager, this solution is wrong in my opinion.
Than you both for your responses.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…