androidstudio transformClassesWithInstantRunForDebug異常處理

在build.gradle中引用 butterknife庫時,報出如下錯誤:

錯誤表現:FAILURE: Build failed with an exception.

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

錯誤原因:這可能是由於butterknife中依賴的v4包引起的

修改前:

exclude group: 'com.android.support'

修改後:

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

總結:報出如上錯誤,一般都是引用jar或arr內部衝突引起的,需要依據排查相關依賴

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章