【发布时间】:2017-11-07 05:31:55
【问题描述】:
我将我的 android studio 更新到了 3.0 版,我在之前的 studio 版本中使用了 jackOption。更新后出现此警告。我收到了这个警告。但我不知道在哪里添加这两行建议?
Warning: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
Future versions of the plugin will not support usage of 'jackOptions' in build.gradle.
To learn more, go to https://d.android.com/r/tools/java-8-support-message.html
【问题讨论】:
-
@pavneet 警告说要添加这两行。我也不需要添加这些吗? android.compileOptions.sourceCompatibility 1.8 android.compileOptions.targetCompatibility 1.8
标签: java android java-8 android-gradle-plugin build.gradle