نص الخطأ
Duplicate class org.jetbrains.kotlin.* found in modules kotlin-stdlib-1.8.0 and kotlin-stdlib-jdk8-1.6.0
Duplicate class org.jetbrains.kotlin.* found in modules kotlin-stdlib-1.8.0 and kotlin-stdlib-jdk8-1.6.0
الصنف نفسه موجود داخل مكتبتين مختلفتين. لا يعرف Gradle أيهما يختار فيوقف البناء.
dependencyInsight لترى من يجلب تلك المكتبة.exclude group: 'x', module: 'y' أو افرض الإصدار الأحدث على الجميع.kotlin-bom لتكون كل أجزاء Kotlin بإصدار واحد../gradlew clean assembleDebug../gradlew :app:dependencies --configuration releaseRuntimeClasspath > deps.txt ./gradlew :app:dependencyInsight --dependency kotlin-stdlib --configuration releaseRuntimeClasspath
بعد إضافة مكتبة جديدة تصفّح مخرجات dependencies؛ الأسماء المكررة تظهر بسهولة.
المؤلف والترخيص: Nibras Code