I need to desugarize a couple of AARs that will be referenced from a B4A project.
I've followed the process indicated HERE and I get an error in the 'desugarizing' phase of the process
I tried to run this step from the command line to see if I could get more info, and indeed I got a big log, but nothing that I can understand
Any hint will be welcome, I'm totally stuck in this.
I've followed the process indicated HERE and I get an error in the 'desugarizing' phase of the process
B4J logs:
Waiting for debugger to connect...
Program started.
extract
merge
desugar
Exception in thread "main" java.lang.IllegalStateException
at com.google.common.base.Preconditions.checkState(Preconditions.java:491)
at com.google.devtools.build.android.desugar.Desugar.desugarClassesInInput(Desugar.java:620)
at com.google.devtools.build.android.desugar.Desugar.desugarOneInput(Desugar.java:449)
at com.google.devtools.build.android.desugar.Desugar.desugar(Desugar.java:391)
at com.google.devtools.build.android.desugar.Desugar.main(Desugar.java:974)
1
I tried to run this step from the command line to see if I could get more info, and indeed I got a big log, but nothing that I can understand
Command line logs:
C:\Develop\Utils\DS\Files>java -verbose -jar ..\Desugar_deploy.jar --bootclasspath_entry=C:\Develop\Basic4Android\android-sdk-windows\platforms\android-28\android.jar --input=merged.jar --output=converted.jar
[Opened C:\Program Files (x86)\Java\jre1.8.0_181\lib\rt.jar]
[Loaded java.lang.Object from C:\Program Files (x86)\Java\jre1.8.0_181\lib\rt.jar]
[Loaded java.io.Serializable from C:\Program Files (x86)\Java\jre1.8.0_181\lib\rt.jar]
[Loaded java.lang.Comparable from C:\Program Files (x86)\Java\jre1.8.0_181\lib\rt.jar]
[Loaded java.lang.CharSequence from C:\Program Files (x86)\Java\jre1.8.0_181\lib\rt.jar]
(.......skipping several hundreds of similar lines.......)
[Loaded org.objectweb.asm.Frame from file:/C:/Develop/Utils/DS/Desugar_deploy.jar]
[Loaded org.objectweb.asm.CurrentFrame from file:/C:/Develop/Utils/DS/Desugar_deploy.jar]
[Loaded org.objectweb.asm.Type from file:/C:/Develop/Utils/DS/Desugar_deploy.jar]
[Loaded java.util.Vector$Itr from C:\Program Files (x86)\Java\jre1.8.0_181\lib\rt.jar]
Exception in thread "main" [Loaded java.lang.Throwable$PrintStreamOrWriter from C:\Program Files (x86)\Java\jre1.8.0_181\lib\rt.jar]
[Loaded java.lang.Throwable$WrappedPrintStream from C:\Program Files (x86)\Java\jre1.8.0_181\lib\rt.jar]
[Loaded java.util.IdentityHashMap$KeySet from C:\Program Files (x86)\Java\jre1.8.0_181\lib\rt.jar]
java.lang.IllegalStateException
at com.google.common.base.Preconditions.checkState(Preconditions.java:491)
at com.google.devtools.build.android.desugar.Desugar.desugarClassesInInput(Desugar.java:620)
at com.google.devtools.build.android.desugar.Desugar.desugarOneInput(Desugar.java:449)
at com.google.devtools.build.android.desugar.Desugar.desugar(Desugar.java:391)
at com.google.devtools.build.android.desugar.Desugar.main(Desugar.java:974)
[Loaded java.util.IdentityHashMap$IdentityHashMapIterator from C:\Program Files (x86)\Java\jre1.8.0_181\lib\rt.jar]
[Loaded java.util.IdentityHashMap$KeyIterator from C:\Program Files (x86)\Java\jre1.8.0_181\lib\rt.jar]
[Loaded java.nio.file.SimpleFileVisitor from C:\Program Files (x86)\Java\jre1.8.0_181\lib\rt.jar]
[Loaded com.google.devtools.build.android.desugar.Desugar$2 from file:/C:/Develop/Utils/DS/Desugar_deploy.jar]
[Loaded java.nio.file.FileVisitOption from C:\Program Files (x86)\Java\jre1.8.0_181\lib\rt.jar]
[Loaded java.nio.file.FileTreeWalker from C:\Program Files (x86)\Java\jre1.8.0_181\lib\rt.jar]
[Loaded java.util.RegularEnumSet$EnumSetIterator from C:\Program Files (x86)\Java\jre1.8.0_181\lib\rt.jar]
[Loaded java.nio.file.FileTreeWalker$DirectoryNode from C:\Program Files (x86)\Java\jre1.8.0_181\lib\rt.jar]
[Loaded java.nio.file.FileTreeWalker$Event from C:\Program Files (x86)\Java\jre1.8.0_181\lib\rt.jar]
[Loaded java.nio.file.FileTreeWalker$EventType from C:\Program Files (x86)\Java\jre1.8.0_181\lib\rt.jar]
[Loaded java.nio.file.Files$3 from C:\Program Files (x86)\Java\jre1.8.0_181\lib\rt.jar]
[Loaded java.nio.file.FileVisitResult from C:\Program Files (x86)\Java\jre1.8.0_181\lib\rt.jar]
C:\Develop\Utils\DS\Files>
Any hint will be welcome, I'm totally stuck in this.