I'm having exactly the same error as the user reported HERE when trying to desugar an AAR
In the last post of that thread @Erel mentioned
Thanks in advance
B4X:
extract
merge
desugar
Exception in thread "main" java.lang.IllegalStateException: Expected a load for Lxxxxxxxxxx; to set up parameter 2 for yyyyyyyyyy but got -1
at com.google.common.base.Preconditions.checkState(Preconditions.java:862)
at com.google.devtools.build.android.desugar.LambdaDesugaring$InvokedynamicRewriter.attemptAllocationBeforeArgumentLoads(LambdaDesugaring.java:543)
at com.google.devtools.build.android.desugar.LambdaDesugaring$InvokedynamicRewriter.visitInvokeDynamicInsn(LambdaDesugaring.java:427)
....
In the last post of that thread @Erel mentioned
Where should I find a new version of the tool, or any hint regarding how to do it with Android Studio?It means that the library is not compatible with the desugar tool. Might require a new version of the tool. You can try to do it with Android Studio and get the desugarred jar.
Thanks in advance