Android Studio导入模块时出现的问题

当我在现有的项目中导入一个模块时出现了以下问题,我查了下得知jackOption是J ava8的lambda表达式,新导入的模块中开启了jackOption,而原项目没有,请问有没有大神知道该怎么办?
Error:(14, 0) Gradle DSL method not found: 'jackOptions()'
Possible causes:

  • The project 'MyApplication' may be using a version of Gradle that does not contain the method.
    Gradle settings
  • The build file may be missing a Gradle plugin.
    Apply Gradle plugin

解决方案:

add the following to your module-level build config file:
android {
...
buildToolsVersion ‘21.1.2’
defaultConfig {
// Enable the experimental Jack build tools.
jackOptions {
enabled true
}
}
...
}

如果没有用Gradle,或者对Gradle了解不多,可能就比较麻烦。