美文网首页
Android 加入BindView报错

Android 加入BindView报错

作者: tech_go | 来源:发表于2022-01-18 11:55 被阅读0次

加入:

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'

就成功了。

相关文章

网友评论

      本文标题:Android 加入BindView报错

      本文链接:https://www.haomeiwen.com/subject/wzdkhrtx.html