Android studio 重复类com.github.msarhan

Android studio 重复类com.github.msarhan,android-studio,calendar,dependencies,Android Studio,Calendar,Dependencies,将ummalqura日历依赖项更新为2.0.2时,出现重复错误。这里我提供了堆栈错误 Duplicate class com.github.msarhan.ummalqura.calendar.UmmalquraCalendar found in modules jetified-ummalqura-calendar-2.0.2 (com.github.msarhan:ummalqura-calendar:2.0.2) and jetified-ummalqura-calendar-snapsh

将ummalqura日历依赖项更新为2.0.2时,出现重复错误。这里我提供了堆栈错误

Duplicate class com.github.msarhan.ummalqura.calendar.UmmalquraCalendar found in modules jetified-ummalqura-calendar-2.0.2 (com.github.msarhan:ummalqura-calendar:2.0.2) and jetified-ummalqura-calendar-snapshots-1.1.13 (net.alhazmy13:ummalqura-calendar-snapshots:1.1.13)
Duplicate class com.github.msarhan.ummalqura.calendar.UmmalquraDateFormatSymbols found in modules jetified-ummalqura-calendar-2.0.2 (com.github.msarhan:ummalqura-calendar:2.0.2) and jetified-ummalqura-calendar-snapshots-1.1.13 (net.alhazmy13:ummalqura-calendar-snapshots:1.1.13)
Duplicate class com.github.msarhan.ummalqura.calendar.UmmalquraGregorianConverter found in modules jetified-ummalqura-calendar-2.0.2 (com.github.msarhan:ummalqura-calendar:2.0.2) and jetified-ummalqura-calendar-snapshots-1.1.13 (net.alhazmy13:ummalqura-calendar-snapshots:1.1.13)
Duplicate class com.github.msarhan.ummalqura.calendar.text.UmmalquraFormatData_ar found in modules jetified-ummalqura-calendar-2.0.2 (com.github.msarhan:ummalqura-calendar:2.0.2) and jetified-ummalqura-calendar-snapshots-1.1.13 (net.alhazmy13:ummalqura-calendar-snapshots:1.1.13)
Duplicate class com.github.msarhan.ummalqura.calendar.text.UmmalquraFormatData_en found in modules jetified-ummalqura-calendar-2.0.2 (com.github.msarhan:ummalqura-calendar:2.0.2) and jetified-ummalqura-calendar-snapshots-1.1.13 (net.alhazmy13:ummalqura-calendar-snapshots:1.1.13)
这是我的身材,格雷德尔

plugins {
    id 'com.android.application'
}

android {
    compileSdkVersion 30
    buildToolsVersion "30.0.3"

    defaultConfig {
        applicationId "com.example.munajat"
        minSdkVersion 21
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    sourceSets {
        main {
            res {
                srcDirs 'src\\main\\res', 'src\\main\\res\\layouts\\duas', 'src\\main\\res\\duas', 'src\\main\\res\\layouts\\ziarah', 'src\\main\\res\\layouts\\amal', 'src\\main\\res\\layouts\\munajat', 'src\\main\\res\\layouts\\amalramadan', 'src\\main\\res\\layouts\\taqibsolat', 'src\\main\\res\\layouts\\amalsyaaban', 'src\\main\\res\\layouts\\amalrejab'
            }
        }
    }
}

dependencies {

    implementation 'androidx.appcompat:appcompat:1.3.0'
    implementation 'com.google.android.material:material:1.3.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
    implementation 'androidx.gridlayout:gridlayout:1.0.0'
    testImplementation 'junit:junit:4.+'
    implementation 'com.airbnb.android:lottie:3.6.0'
    androidTestImplementation 'androidx.test.ext:junit:1.1.2'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
    implementation 'net.alhazmy13.hijridatepicker:library:3.0.2'
    implementation 'com.github.msarhan:ummalqura-calendar:2.0.2'
    implementation 'com.intuit.sdp:sdp-android:1.0.6'
    implementation 'com.intuit.ssp:ssp-android:1.0.6'

}
问题可能发生在我直接更新依赖项时,而it仍然使用旧库。
请帮助我陷入困境。

是的,hijridatepicker有问题。。 你可以通过添加他正在使用的相同版本来检查这个问题

替换:

implementation 'com.github.msarhan:ummalqura-calendar:2.0.2'
与:

implementation group: 'net.alhazmy13', name: 'ummalqura-calendar-snapshots', version: '1.1.13'