Open rafagan opened 5 years ago
This erros occurs because the class android.support.v4.app.CoreComponentFactory
is in com.android.support:support-compat:28.0.0
and androidx.core:core:1.0.0
which caused the conflict, for fix you need to exclude the dependency.
implementation('com.github.pwittchen:infinitescroll:0.0.2') {
exclude group: 'androidx.core', module: 'core'
}
This is the problem @lucasmpaim explained. You can use provided solution or version 0.0.1 of the library, which doesn't use code from androix
packages and it should work.
Thanks, I added inside dependencies:
implementation ('com.github.pwittchen:infinitescroll:0.0.2') {
exclude group: 'androidx.core', module: '*'
exclude group: 'com.google.android.material', module: 'material'
}
And inside android:
packagingOptions {
exclude 'META-INF/androidx.*'
exclude 'META-INF/proguard/androidx-*'
}
@rafagan is it working fine for you now?
Actually no. But I got the old version and it still works.
I experiencing the following error:
Manifest merger failed : Attribute application@appComponentFactory 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 element at AndroidManifest.xml:9:5-97:19 to override.
My gradle: