加入:
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'
就成功了。
网友评论