任务':app:transformClassesWithDesugarForRelease'的Flutter执行失败

时间:2019-06-25 10:28:27

标签: android gradle flutter

我正在尝试将我的项目构建为android发布模式,但出现了如下异常:

Exception in thread "main" java.lang.IllegalArgumentException   
        at com.google.common.base.Preconditions.checkArgument(Preconditions.java:108)

        at com.google.devtools.build.android.desugar.DefaultMethodClassFixer$DefaultMethodFinder.visit(DefaultMethodClassFixer.java:471)
        at org.objectweb.asm.ClassReader.accept(Unknown Source)                                                    
        at org.objectweb.asm.ClassReader.accept(Unknown Source)                                                    
        at com.google.devtools.build.android.desugar.DefaultMethodClassFixer.defaultMethodsDefined(DefaultMethodClassFixer.java:319)
        at com.google.devtools.build.android.desugar.DefaultMethodClassFixer.visitEnd(DefaultMethodClassFixer.java:88)
        at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)                                                 
        at com.google.devtools.build.android.desugar.InterfaceDesugaring.visitEnd(InterfaceDesugaring.java:85)

        at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)                                                 
        at com.google.devtools.build.android.desugar.LambdaDesugaring.visitEnd(LambdaDesugaring.java:150)

        at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)                                                 
        at org.objectweb.asm.ClassVisitor.visitEnd(Unknown Source)                                                 
        at org.objectweb.asm.ClassReader.accept(Unknown Source)                                                    
        at org.objectweb.asm.ClassReader.accept(Unknown Source)                                                    
        at com.google.devtools.build.android.desugar.Desugar.desugarClassesInInput(Desugar.java:401)

        at com.google.devtools.build.android.desugar.Desugar.desugarOneInput(Desugar.java:326)

        at com.google.devtools.build.android.desugar.Desugar.desugar(Desugar.java:280)

        at com.google.devtools.build.android.desugar.Desugar.main(Desugar.java:584)


FAILURE: Build failed with an exception.                                                                           

* What went wrong:                                                                                                 
Execution failed for task ':app:transformClassesWithDesugarForRelease'.

和许多类脚本行,由于限制而无法在此处显示。 有人知道发生了什么吗? 升级依赖项后出现此异常(尤其是使用android.support ...到androidx.legacy)

0 个答案:

没有答案