Java Question Trying to Desugar exoplayer with no luck

Addo

Well-Known Member
Licensed User
i got the following error when i try to desugar exoplayer aar

extract
merge
desugar
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.devtools.build.android.desugar.Desugar (file:/C:/Users/Army/Desktop/disg/Desugar_deploy.jar) to field java.lang.invoke.InnerClassLambdaMetafactory.dumper
WARNING: Please consider reporting this to the maintainers of com.google.devtools.build.android.desugar.Desugar
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Exception in thread "main" java.lang.NullPointerException: Failed to register lambda dump directory 'C:\Users\Army\AppData\Local\Temp\lambdas998913960488695762'
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:980)
at com.google.devtools.build.android.desugar.Desugar.verifyLambdaDumpDirectoryRegistered(Desugar.java:983)
at com.google.devtools.build.android.desugar.Desugar.main(Desugar.java:968)
1
always getting Failed to register lambda dump directory i am using the latest android sdk

B4X:
Private AndroidJar As String = "C:\Android\platforms\android-30\android.jar"

the exoplayer version that i am trying to desugar is 2.18.0
 

DonManfred

Expert
Licensed User
Longtime User
I´m pretty sure the provided files for exoplayer doesn´t need to be desugared.
Why are you doing this?

BTW: We are in the B4J Forum here. Exoplayer is an Android Library, or not?

ExoPlayer is an application level media player for Android.
 

Addo

Well-Known Member
Licensed User
I´m pretty sure the provided files for exoplayer doesn´t need to be desugared.
Why are you doing this?
i am trying to use the latest version of exoplayer aar thats why i have to desugar the new aar and adjust the exoplayer with the new exoplayer function and remove the deprecated old version usage, then recompile the library
 

JohnC

Expert
Licensed User
Longtime User
It is no longer needed to desugar libraries.
Where can I get more info on why this is no longer needed, or is it not needed for only certain types of libs?
 

JohnC

Expert
Licensed User
Longtime User
probably because of the new toolchains in the newest SDK.
Desugaring was needed before the new tools were available.
Excellent to know - thank you Don.
 

JohnC

Expert
Licensed User
Longtime User
So does that mean that the newer SDK will allow the latest version of B4A to work with *any* library that worked with B4A 9.x?
 

DonManfred

Expert
Licensed User
Longtime User
So does that mean that the newer SDK will allow the latest version of B4A to work with *any* library that worked with B4A 9.x?
I can not answer this. It is far above my knowledge about the toolchain.
I can´t see any reason why a library will not work.
 
Top