将 java 8 用于简洁的 Lambda 表达式等,但缺点是无法即时运行。 buildToolsVersion "23.0.3"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
如何使用 Java 8 特性启用即时运行
最佳答案
来自官方文档:
Known Issues Instant Run does not currently work with Jack and will be disabled while using the new toolchain.
关于Android Studio Instant 运行无法在 android 中使用 java 8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38323162/