androidstudio transformClassesWithInstantRunForDebug异常处理

在build.gradle中引用 butterknife库时,报出如下错误:

错误表现:FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithInstantRunForDebug'.

错误原因:这可能是由于butterknife中依赖的v4包引起的

androidstudio transformClassesWithInstantRunForDebug异常处理_第1张图片

修改前:

exclude group: 'com.android.support'

修改后:

compile('com.jakewharton:butterknife:8.8.1') {
    exclude group: 'com.android.support'
}

总结:报出如上错误,一般都是引用jar或arr内部冲突引起的,需要依据排查相关依赖

你可能感兴趣的:(android,异常)