保错信息如下
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' }

技术
下载桌面版
GitHub
百度网盘(提取码:draw)
Gitee
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:[email protected]
QQ群:766591547
关注微信