防止自己以后犯错,记录下以备不时之需

 

原先进的是githubguan官网,

关于使用butterknife报错的解决方案

结果报错

关于使用butterknife报错的解决方案

 

提示:

Manifest merger failed : Attribute [email protected] value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
    is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
    Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:6:5-20:19 to override.
 

 

 

后来把版本号改了,改成了

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

关于使用butterknife报错的解决方案

 

从大佬那里得知最新的黄油刀AndroidX,AndroidX和support貌似有冲突,所以改一下版本号就可以了

 

 

 

 

相关文章: