'Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and support-compat-27.1
How do resolve this error: Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and support-compat-27.1.1-runtime (com.android.support:support-compat:27.1.1) enter image description here
Solution 1:[1]
I was facing the same issue and I narrowed it down to the version of Glide I was using. If you're also using Glide, try updating your version to the latest (4.12.0). Updating fixed the issue for me.
Solution 2:[2]
add configure properties in project's file gradle.properties
android.useAndroidX=true
android.enableJetifier=true
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | James |
Solution 2 | pix |