保错信息如下
Execution failed for task ':app:mergeExtDexDebug'.
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform artifact 'butterknife-runtime.aar (com.jakewharton:butterknife-runtime:10.1.0)' to match attributes {artifactType=android-dex, dexing-is-debuggable=true, dexing-min-sdk=15}
Execution failed for DexingTransform: C:\Users\Lv_345.gradle\caches\transforms-2\files-2.1\8e0adaeeb74965e53b877012710dd195\jars\classes.jar.
Error while dexing.
解决:给所有的 Module 加入jdk1.8
在 build.gradle 的 android 下加入下面代码 即可解决
compileOptions {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}