Android X: tools:replace specified at line: for attribute, but no new value specified
I think you are migrating to AndroidX libs.
Add below lines to gradle.properties file
android.useAndroidX=true
android.enableJetifier=true
Remove tools:replace="android:appComponentFactory"
from manifest.
Replace android.support.v7.app.AppCompatActivity
to androidx.appcompat.app.AppCompatActivity
Migrating to AndroidX
You can try adding:
android:appComponentFactory="android.support.v4.app.CoreComponentFactory"
To the tag <application >
in your manifest.
I got same error in my project, I have resolved it You can try it
Android Studio > Refactor > Migrate to AndroidX
In my case, I had updated Firebase and play services dependency, result in this issue.
Reverted back the dependency updates and the error vanished
Seems that the latest Firebase and Play Service dependencies are compatible with androidx.