Duplicate class error when building the project
Author: SergeyKodzhaCreated Oct 9, 2024Updated May 17, 2025
I just added library dependency into build.gradle:
implementation "com.sothree.slidinguppanel:library:3.4.0"Then on project builld an error pops out:
Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.13.1.aar -> core-1.13.1-runtime (androidx.core:core:1.13.1) and support-compat-26.0.2.aar -> support-compat-26.0.2-runtime (com.android.support:support-compat:26.0.2)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules core-1.13.1.aar -> core-1.13.1-runtime (androidx.core:core:1.13.1) and support-compat-26.0.2.aar -> support-compat-26.0.2-runtime (com.android.support:support-compat:26.0.2)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules core-1.13.1.aar -> core-1.13.1-runtime (androidx.core:core:1.13.1) and support-compat-26.0.2.aar -> support-compat-26.0.2-runtime (com.android.support:support-compat:26.0.2)
Duplicate class android.support.v4.os.IResultReceiver found in modules core-1.13.1.aar -> core-1.13.1-runtime (androidx.core:core:1.13.1) and support-compat-26.0.2.aar -> support-compat-26.0.2-runtime (com.android.support:support-compat:26.0.2)
Duplicate class android.support.v4.os.IResultReceiver$Stub found in modules core-1.13.1.aar -> core-1.13.1-runtime (androidx.core:core:1.13.1) and support-compat-26.0.2.aar -> support-compat-26.0.2-runtime (com.android.support:support-compat:26.0.2)
Duplicate class android.support.v4.os.IResultReceiver$Stub$Proxy found in modules core-1.13.1.aar -> core-1.13.1-runtime (androidx.core:core:1.13.1) and support-compat-26.0.2.aar -> support-compat-26.0.2-runtime (com.android.support:support-compat:26.0.2)
Duplicate class android.support.v4.os.ResultReceiver found in modules core-1.13.1.aar -> core-1.13.1-runtime (androidx.core:core:1.13.1) and support-compat-26.0.2.aar -> support-compat-26.0.2-runtime (com.android.support:support-compat:26.0.2)
Duplicate class android.support.v4.os.ResultReceiver$1 found in modules core-1.13.1.aar -> core-1.13.1-runtime (androidx.core:core:1.13.1) and support-compat-26.0.2.aar -> support-compat-26.0.2-runtime (com.android.support:support-compat:26.0.2)
Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules core-1.13.1.aar -> core-1.13.1-runtime (androidx.core:core:1.13.1) and support-compat-26.0.2.aar -> support-compat-26.0.2-runtime (com.android.support:support-compat:26.0.2)
Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules core-1.13.1.aar -> core-1.13.1-runtime (androidx.core:core:1.13.1) and support-compat-26.0.2.aar -> support-compat-26.0.2-runtime (com.android.support:support-compat:26.0.2)Android Studio Ladybug 2024.2.1
Source: umano/AndroidSlidingUpPanel