Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AS 3.1中编译失败 #11

Open
chenfei0928 opened this issue Mar 27, 2018 · 3 comments
Open

AS 3.1中编译失败 #11

chenfei0928 opened this issue Mar 27, 2018 · 3 comments

Comments

@chenfei0928
Copy link

在AS 3.1.0 中,添加依赖之后,Sync成功,编译失败,这是相关日志
Exception in thread "main" java.lang.NullPointerException: Couldn't find outer class com/exyui/android/debugbottle/components/DTDrawerActivity$infoLayout$2$1$1 of com/exyui/android/debugbottle/components/DTDrawerActivity$infoLayout$2$1$1$1 at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:1079) at com.google.devtools.build.android.desugar.ClassVsInterface.isOuterInterface(ClassVsInterface.java:56) at com.google.devtools.build.android.desugar.InterfaceDesugaring.visitOuterClass(InterfaceDesugaring.java:246) at org.objectweb.asm.ClassReader.accept(ClassReader.java:638) 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)

@kiruto
Copy link
Owner

kiruto commented Mar 27, 2018

请问您是否使用了Java8?

@lichen228
Copy link

仅在gradle3.1.0下出现,gradle3.0.1可以正常编译
classpath 'com.android.tools.build:gradle:3.1.0'

在3.1.0下脱糖失败:
Run tasks :app:transformClassesWithDesugarForDevDebug
ss

相关文件:
https://github.com/kiruto/debug-bottle/blob/1.1.x/components/src/main/kotlin/com/exyui/android/debugbottle/components/DTDrawerActivity.kt
infoLayout的写法,为保证编译,作者是不是考虑先取消Lambada

@chenfei0928
Copy link
Author

启用了Java8语法支持

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants