Use classes from JAR written in Scala

Hi

I would like use a class which was written in Scala. The class was package into a jar. The Jar has only one dependency: scala-library-2.13.2.jar. The scala-library-2.13.2.jar itself depends on rt.jar which was part of the jdk. scala-library-2.13.2.jar uses the following java classes from rt.jar.

  -> java.io                                            
  -> java.lang                                          
  -> java.lang.invoke                                   
  -> java.lang.ref                                      
  -> java.lang.reflect                                  
  -> java.util                                          
  -> java.util.concurrent.locks                         
  -> java.util.regex                                    
  -> java.util.stream

I tested calling the Scala class from processing in Java mode. It worked fine. However, when I tried in Android mode, I got the following build errors from Android mode. Anyone knows why? Or it is not possible to do so (uses jar written in Scala)

Psksvp

ermediates/transforms/desugar/debug/26.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/27.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/28.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/17.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/18.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/12.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/13.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/5.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/6.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/31.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/32.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/39.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/40.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/2.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/3.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/15.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/16.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/0.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/1.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/classes/debug --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/0.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/2.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/3.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/4.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/5.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/6.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/7.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/8.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/9.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/10.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/11.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/12.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/13.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/14.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/15.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/16.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/17.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/18.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/19.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/20.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/21.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/22.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/23.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/24.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/25.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/26.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/27.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/28.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/29.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/30.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/31.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/32.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/33.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/34.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/35.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/36.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/37.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/38.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/39.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/40.jar --classpath_entry /Users/psksvp/Applications/Processing.app/Contents/Java/modes/java/mode/org.eclipse.jdt.core.jar --classpath_entry /Users/psksvp/.gradle/caches/modules-2/files-2.1/com.google.android.wearable/wearable/2.4.0/9088d02f75b3150f1d15f03d619636a5aefdda98/wearable-2.4.0.jar --bootclasspath_entry /Users/psksvp/Library/Android/sdk/platforms/android-28/android.jar --bootclasspath_entry /Users/psksvp/Library/Android/sdk/platforms/android-28/optional/org.apache.http.legacy.jar android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/7.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/8.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/9.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/10.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/11.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/12.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/13.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/14.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/15.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/16.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/17.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/18.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/19.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/20.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/21.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/22.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/23.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/24.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/25.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/26.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/27.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/28.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/29.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/30.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/31.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/32.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/33.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/34.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/35.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/36.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/37.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/38.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/39.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/40.jar --classpath_entry /Users/psksvp/Applications/Processing.app/Contents/Java/modes/java/mode/org.eclipse.jdt.core.jar --classpath_entry /Users/psksvp/.gradle/caches/modules-2/files-2.1/com.google.android.wearable/wearable/2.4.0/9088d02f75b3150f1d15f03d619636a5aefdda98/wearable-2.4.0.jar --bootclasspath_entry /Users/psksvp/Library/Android/sdk/platforms/android-28/android.jar --bootclasspath_entry /Users/psksvp/Library/Android/sdk/platforms/android-28/optional/org.apache.http.legacy.jar --bootclasspath_entry /Users/psksvp/Library/Android/sdk/platforms/android-28/optional/android.test.mock.jar --bootclasspath_entry /Users/psksvp/Library/Android/sdk/platforms/android-28/optional/android.test.base.jar --bootclasspath_entry /Users/psksvp/Library/Android/sdk/platforms/android-28/optional/android.test.runner.jar --bootclasspath_entry /Users/psksvp/Applications/Processing.app/Contents/PlugIns/jdk1.8.0_202.jdk/Contents/Home/jre/lib/resources.jar --bootclasspath_entry /Users/psksvp/Applications/Processing.app/Contents/PlugIns/jdk1.8.0_202.jdk/Contents/Home/jre/lib/rt.jar --bootclasspath_entry /Users/psksvp/Applications/Processing.app/Contents/PlugIns/jdk1.8.0_202.jdk/Contents/Home/jre/lib/jsse.jar --bootclasspath_entry /Users/psksvp/Applications/Processing.app/Contents/PlugIns/jdk1.8.0_202.jdk/Contents/Home/jre/lib/jce.jar --bootclasspath_entry /Users/psksvp/Applications/Processing.app/Contents/PlugIns/jdk1.8.0_202.jdk/Contents/Home/jre/lib/charsets.jar --bootclasspath_entry /Users/psksvp/Applications/Processing.app/Contents/PlugIns/jdk1.8.0_202.jdk/Contents/Home/jre/lib/jfr.jar --min_sdk_version 17 --desugar_try_with_resources_if_needed --desugar_try_with_resources_omit_runtime_classes}
Caused by: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.google.devtools.build.android.desugar.Desugar with arguments {–input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/9.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/10.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/22.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/23.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/1.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/2.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/10.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/11.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/25.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/26.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/27.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/28.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/17.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/18.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/12.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/13.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/5.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/6.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/31.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/32.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/39.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/40.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/2.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/3.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/15.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/16.jar --input /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/stackFramesFixer/debug/0.jar --output /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build/intermediates/transforms/desugar/debug/1.jar --classpath_entry /private/var/folders/gg/dg52tq455m3_zx7zyd2kjpj80000gp/T/android7891363491683879716sketch/app/build//40.jar --classpath_entry /Users/psksvp/Applications/Processing.app/Contents/Java/modes/java/mode/org.eclipse.jdt.core.jar --classpath_entry /Users/psksvp/.gradle/caches/modules-2/files-2.1/com.google.android.wearable/wearable/2.4.0/9088d02f75b3150f1d15f03d619636a5aefdda98/wearable-2.4.0.jar --bootclasspath_entry /Users/psksvp/Library/Android/sdk/platforms/android-28/android.jar --bootclasspath_entry /Users/psksvp/Library/Android/sdk/platforms/android-28/optional/org.apache.http.legacy.jar --bootclasspath_entry /Users/psksvp/Library/Android/sdk/platforms/android-28/optional/android.test.mock.jar --bootclasspath_entry /Users/psksvp/Library/Android/sdk/platforms/android-28/optional/android.test.base.jar --bootclasspath_entry /Users/psksvp/Library/Android/sdk/platforms/android-28/optional/android.test.runner.jar --bootclasspath_entry /Users/psksvp/Applications/Processing.app/Contents/PlugIns/jdk1.8.0_202.jdk/Contents/Home/jre/lib/resources.jar --bootclasspath_entry /Users/psksvp/Applications/Processing.app/Contents/PlugIns/jdk1.8.0_202.jdk/Contents/Home/jre/lib/rt.jar --bootclasspath_entry /Users/psksvp/Applications/Processing.app/Contents/PlugIns/jdk1.8.0_202.jdk/Contents/Home/jre/lib/jsse.jar --bootclasspath_entry /Users/psksvp/Applications/Processing.app/Contents/PlugIns/jdk1.8.0_202.jdk/Contents/Home/jre/lib/jce.jar --bootclasspath_entry /Users/psksvp/Applications/Processing.app/Contents/PlugIns/jdk1.8.0_202.jdk/Contents/Home/jre/lib/charsets.jar --bootclasspath_entry /Users/psksvp/Applications/Processing.app/Contents/PlugIns/jdk1.8.0_202.jdk/Contents/Home/jre/lib/jfr.jar --min_sdk_version 17 --desugar_try_with_resources_if_needed --desugar_try_with_resources_omit_runtime_classes}
at com.android.build.gradle.internal.process.GradleProcessResult.buildProcessException(GradleProcessResult.java:73)
at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:48)
at com.android.build.gradle.internal.transforms.DesugarTransform.lambda$processNonCachedOnes$3(DesugarTransform.java:316)
Caused by: org.gradle.process.internal.ExecException: Process ‘command ‘/Users/psksvp/Applications/Processing.app/Contents/PlugIns/jdk1.8.0_202.jdk/Contents/Home/jre/bin/java’’ finished with non-zero exit value 1
at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:409)
at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:46)
… 1 more

A follow up to my own question. I used the horrible Android Studio to generate me an empty activity project. Then I added processing-core.jar from android mode. I add code to start a sketch (https://android.processing.org/tutorials/android_studio/index.html) which called a class in my Scala jar file. It worked just fine.

I compared the file build.gradle which was generated from processing-android IDE and another one generated from the horrible Android Studio. The only different is processing-android uses ejc to compile instead of javac from JDK 8.

So I wonder if there is a way to configure processing-android IDE to use javac from JDK8?

psksvp

Hehe. I know what you mean.
Just curious. I’m not familiar with Scala, and how to integrate it with Processing.
How does it work? You are talking about this, isn’t it?