com.hendraanggrian.appcompat:socialview:0.1 library work with androidx. when i add this library to my project I got support.v4 error :
Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy
for solving this issue I add below code to gradle.properties
android.useAndroidX = true
android.enableJetifier = false
android.enableD8 = false
but not affect. another solution i tried below code
configurations {
all*.exclude group: 'com.android.support', module: 'support-v4'
// all*.exclude group: 'com.android.support', module: 'appcompat-v7'
// all*.exclude group: 'com.android.support', module: 'design'
}
that not affect.
also i tried to get dependencies tree to find duplicates with this command
./gradlew dependencies -q
but got error. another thing that may help is that i use kotlin in some cases in this project
the problem is that when i build project and test with adb project built successfully but when i try to build apk in android studio this error appeares
finally i migrate all project to androidx and issue resolved.