Duplicated classes found in modules classes.jar

后端 未结 2 2053
礼貌的吻别
礼貌的吻别 2021-01-04 23:54

Working with \"Cxense SDK for Android\", I\'m getting the message of duplicated class:

Duplicate class android.support.v4.app.INotification         


        
2条回答
  •  囚心锁ツ
    2021-01-05 00:35

    If there are duplicates, use exclude:

    implementation ('com.cxpublic:cxense-android:1.0.1') {
        exclude group: "com.android.support", module: "support-v4"
    }
    

    Or remove implementation 'com.android.support:appcompat-v7:27.1.1' in favour of support-v4.

    See: https://discuss.gradle.org/t/how-do-i-exclude-specific-transitive-dependencies-of-something-i-depend-on/17991

提交回复
热议问题