https://kotlinlang.org logo
#android
Title
# android
m

matt tighe

01/04/2019, 7:25 PM
has anyone had issues regarding upgrading their mockito version to enable testing of suspending functions? my build breaks between the release the includes support for it and not with the error:
Copy code
java.lang.UnsupportedOperationException
        at org.objectweb.asm.ClassVisitor.visitModule(ClassVisitor.java:135)
        at org.objectweb.asm.ClassReader.readModule(ClassReader.java:715)
        at org.objectweb.asm.ClassReader.accept(ClassReader.java:536)
        at org.objectweb.asm.ClassReader.accept(ClassReader.java:391)
        at com.android.builder.desugaring.DesugaringClassAnalyzer.analyze(DesugaringClassAnalyzer.java:144)
        at com.android.builder.desugaring.DesugaringClassAnalyzer.analyzeJar(DesugaringClassAnalyzer.java:92)
        at com.android.builder.desugaring.DesugaringClassAnalyzer.analyze(DesugaringClassAnalyzer.java:63)
        at com.android.build.gradle.internal.transforms.DesugarIncrementalTransformHelper.lambda$getInitalGraphData$4(DesugarIncrementalTransformHelper.java:150)
        at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:1424)
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
        at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
        at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
i’m wondering if this is some transitive dependency issue like is described here: https://stackoverflow.com/questions/52589914/android-type-without-superclass-module-info but the only difference i can see is that mockito is using coroutines v0.19.3 where i’m using 1.0.0
r

rkeazor

01/05/2019, 6:18 PM
Try #test
5 Views