Error:Jack is required to support java 8 language features

问题描述:Error:Jack is required to support java 8 language features;由于java8才有lambda表达式的支持,所以需要配置支持java1.8

解决方法:

defaultConfig {

          jackOptions{

           enabled true

          }

}

compileOptions {

          sourceCompatibilityJavaVersion.VERSION_1_8

          targetCompatibilityJavaVersion.VERSION_1_8

不可以的话修改为:

          targetCompatibility1.8

          sourceCompatibility1.8

}

你可能感兴趣的:(Error:Jack is required to support java 8 language features)