运行:./ gradlew clean assembleDebug
Exception in thread "main" java.lang.NullPointerException: Couldn't find outer class xxxxx/SomeClass$someMethod$1$1$2 of xxxx/SomeClass$someMethod$1$1$2$1
execution failed for task ':app:transformClassesWithDesugarForDevDebug'.
同样的问题https://www.reddit.com/r/androiddev/comments/7u8tug/android_studio_31_beta_1_is_available/
答案 0 :(得分:3)
解决方法解决了: https://issuetracker.google.com/issues/72750890#comment10
JB也填写了一个错误。
答案 1 :(得分:0)
尝试在gradle.properties文件中添加android.enableD8.desugaring = true
然后清理并重建项目