NordicSemiconductor / Android-DFU-Library

Device Firmware Update library and Android app
http://www.nordicsemi.com/dfu
BSD 3-Clause "New" or "Revised" License
763 stars 269 forks source link

Duplicate class kotlin #447

Closed pgitsov closed 2 months ago

pgitsov commented 2 months ago

implementation 'no.nordicsemi.android:dfu:2.2.2' works fine for my project. Changing to implementation 'no.nordicsemi.android:dfu:2.5.0' triggers many build errors like "Duplicate class kotlin... found in modules ...". How can I fix them? My Android Studio is ver. 2024 Koala.

P.S. The last version of DFU library that works for me is 2.3.0. Changing to 2.3.1 causes the "Duplicate class kotlin... found in modules ..." errors. Please advise how to solve this.

pgitsov commented 2 months ago

Solved by adding implementation(platform("org.jetbrains.kotlin:kotlin-bom:2.0.0")) to dependencies in build.gradle (:app)