Android 加入BindView报错

2022-01-18  本文已影响0人  tech_go

加入:

implementation'com.jakewharton:butterknife:8.8.1'

annotationProcessor'com.jakewharton:butterknife-compiler:8.8.1'

报错:

:app:compileDebugJavaWithJavac

The given artifact contains a string literal with a package reference 'android.support.v4.content' that cannot be safely rewritten

修改:

implementation'com.jakewharton:butterknife:8.8.1'

annotationProcessor'com.jakewharton:butterknife-compiler:8.8.1'

改成

implementation'com.jakewharton:butterknife:10.2.1'

annotationProcessor'com.jakewharton:butterknife-compiler:10.2.1'

就成功了。

上一篇 下一篇

猜你喜欢

热点阅读