正如developer.
android网站中提到的那样
“The Jack toolchain is deprecated,as per this announcement. If your
project depends on Jack,you should migrate to using Java 8 support
built into Android Studio’s default toolchain.”
我需要使用lambda表达式,所以我已经禁用了jack选项,但是当我编译我的代码时,我收到以下错误
Error:Jack is required to support Java 8 language features. Either enable Jack or remove sourceCompatibility JavaVersion.VERSION_1_8.
下面是我的build.gradle文件的屏幕截图