Skip to main content

Android小知识 - “android.support.v4.content” that cannot be safely rewritten. for androidx

Android小知识 - “android.support.v4.content” that cannot be safely rewritten. for androidx

Android小知识 - “android.support.v4.content” that cannot be safely rewritten. for androidx

遇到的问题:

“android.support.v4.content” that cannot be safely rewritten. for androidx

解决办法:

参考:https://stackoverflow.com/questions/53484988/the-given-artifact-contains-a-string-literal-with-a-package-reference-android-s
 

主要是添加一个依赖

添加依赖

dependencies {
    implementation 'com.jakewharton:butterknife:10.0.0'
    annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'
}

 

版权声明

版权声明

张大鹏 创作并维护的 Walkerfree 博客采用 创作共用保留署名-非商业-禁止演绎4.0国际许可证。本文首发于 Walkerfree 博客(http://www.walkerfree.com/),版权所有,侵权必究。本文永久链接:http://www.walkerfree.com/article/274