Skip to content

Instantly share code, notes, and snippets.

@dvhp
Created April 22, 2018 10:11
Show Gist options
  • Save dvhp/468aecdb625a1078fbf18de01f0ff88f to your computer and use it in GitHub Desktop.
Save dvhp/468aecdb625a1078fbf18de01f0ff88f to your computer and use it in GitHub Desktop.
dsl-json java8 annotation processor error 2
:app:transformClassesWithStackFramesFixerForDebug
Exception in thread "main" java.lang.NoClassDefFoundError: javax/json/bind/Jsonb
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.lang.ClassLoader.defineClass(ClassLoader.java:642)
at com.google.devtools.build.android.desugar.HeaderClassLoader.findClass(HeaderClassLoader.java:66)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at com.google.devtools.build.android.desugar.LambdaDesugaring.loadFromInternal(LambdaDesugaring.java:337)
at com.google.devtools.build.android.desugar.LambdaDesugaring.access$500(LambdaDesugaring.java:56)
at com.google.devtools.build.android.desugar.LambdaDesugaring$InvokedynamicRewriter.createLookup(LambdaDesugaring.java:620)
at com.google.devtools.build.android.desugar.LambdaDesugaring$InvokedynamicRewriter.visitInvokeDynamicInsn(LambdaDesugaring.java:402)
at org.objectweb.asm.ClassReader.readCode(ClassReader.java:1623)
at org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1126)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:698)
at org.objectweb.asm.ClassReader.accept(ClassReader.java:500)
at com.google.devtools.build.android.desugar.Desugar.desugarClassesInInput(Desugar.java:477)
at com.google.devtools.build.android.desugar.Desugar.desugarOneInput(Desugar.java:361)
at com.google.devtools.build.android.desugar.Desugar.desugar(Desugar.java:314)
at com.google.devtools.build.android.desugar.Desugar.main(Desugar.java:711)
Caused by: java.lang.ClassNotFoundException: Class javax.json.bind.Jsonb not found
at com.google.devtools.build.android.desugar.HeaderClassLoader.findClass(HeaderClassLoader.java:53)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 18 more
:app:transformClassesWithDesugarForDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithDesugarForDebug'.
> com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.google.devtools.build.android.desugar.Desugar with arguments {--input /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --output /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/desugar/debug/6.jar --input /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/8.jar --output /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/desugar/debug/11.jar --input /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/0.jar --output /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/desugar/debug/3.jar --input /Users/xxx/work/test/MyApplication/app/build/tmp/kotlin-classes/debug --output /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/desugar/debug/1 --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/classes/debug --classpath_entry /Users/xxx/work/test/MyApplication/app/build/tmp/kotlin-classes/debug --classpath_entry /Users/xxx/work/test/MyApplication/app/build/tmp/kapt3/classes/debug --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/0.jar --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/2.jar --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/5.jar --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/6.jar --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/7.jar --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/8.jar --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/9.jar --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/10.jar --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/11.jar --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/12.jar --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/13.jar --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/14.jar --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/15.jar --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/16.jar --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/17.jar --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/18.jar --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/19.jar --classpath_entry /Users/xxx/work/test/MyApplication/app/build/intermediates/transforms/stackFramesFixer/debug/20.jar --bootclasspath_entry /Users/xxx/Library/Android/sdk/platforms/android-27/android.jar --bootclasspath_entry /Users/xxx/Library/Android/sdk/platforms/android-27/optional/org.apache.http.legacy.jar --bootclasspath_entry /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/jre/lib/resources.jar --bootclasspath_entry /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/jre/lib/rt.jar --bootclasspath_entry /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/jre/lib/jsse.jar --bootclasspath_entry /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/jre/lib/jce.jar --bootclasspath_entry /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/jre/lib/charsets.jar --min_sdk_version 21 --nodesugar_try_with_resources_if_needed --desugar_try_with_resources_omit_runtime_classes --legacy_jacoco_fix}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment