The Jack toolchain is deprecated and will not run. To enable support for Java 8 language features built into the plugin, remove 'jackOptions { ... }' from your build.gradle file, and add
android.compileOptions.sourceCompatibility 1.8
android.compileOptions.targetCompatibility 1.8
在3.2版本中,注釋掉如下,就可以運(yùn)行了。
defaultConfig {
//? ? ? ? jackOptions {
//? ? ? ? ? ? enabled true
//? ? ? ? }
? ? }