When there are "androidx libraries" in my project. It always builds failed. Such like this
"
Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86
is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to
You need to enable jetifier by specifying android.enableJetifier=true in gradle.properties. This message will always occur when mixing AndroidX with legacy support dependencies and is not specific to Butter Knife.
Thanks for your answer😀😀😀
You need to enable jetifier by specifying
android.useAndroidX=true
android.enableJetifier=true
ingradle.properties`
but i got a new error:ERROR: [TAG] Failed to resolve variable '${project.groupId}'
I am sorry, but i tried the solution like you guys write:
android.useAndroidX=true
android.enableJetifier=true
and it turns out all of activity got red, AppCompatActivity got red
all of my activity suddenly does not recognized as activity
I am sorry, but i tried the solution like you guys write:
android.useAndroidX=true
android.enableJetifier=trueand it turns out all of activity got red, AppCompatActivity got red
all of my activity suddenly does not recognized as activity
me too
i solve my question by reduce the butterknife version to :
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
and i try to update my android studio to 3.3.1version,build an androidx demo,then the newest butterknife version(10.1.0) is working,and builld success
(forgive my bad english)
implementation 'com.jakewharton:butterknife:10.1.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'


android.enableJetifier=true
What if I don't want to use AndroidX?
Use version 9.0.0
i got error when using version 9.0.0.
then i used version 8.6.0.
i got success
Most helpful comment
i solve my question by reduce the butterknife version to :
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
and i try to update my android studio to 3.3.1version,build an androidx demo,then the newest butterknife version(10.1.0) is working,and builld success
(forgive my bad english)