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

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

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

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

androidstudio transformClassesWithInstantRunForDebug异常处理

修改前:

exclude group: 'com.android.support'

修改后:

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

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

相关文章:

  • 2021-09-04
  • 2022-02-27
  • 2021-12-18
猜你喜欢
  • 2021-07-21
  • 2021-04-05
  • 2021-06-12
  • 2021-11-13
  • 2021-12-12
  • 2021-07-28
  • 2022-12-23
相关资源
相似解决方案