Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Duplicate class kotlin classes kotlin version 1.3.70

Error while adding MoshiPack Library in Kotlin latest version 1.3.70 to gradle.build application Moshi pack

implementation 'com.daveanthonythomas.moshipack:moshipack:1.0.1'

Error Message

Duplicate class kotlin.reflect.KClasses found in modules jetified-kotlin-reflect-1.1.1.jar (org.jetbrains.kotlin:kotlin-reflect:1.1.1) and jetified-kotlin-stdlib-1.3.70.jar (org.jetbrains.kotlin:kotlin-stdlib:1.3.70)

Any suggestions how to solve this issue or any other library I can use in Kotlin so I can use Message Pack.

Thanks in advance

like image 236
Mohamed Ali Avatar asked Mar 12 '20 21:03

Mohamed Ali


1 Answers

Try to add this to your dependencies:

    implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"

and make sure you specified your Android NDK location under File>Project Structure...>SDK Location

like image 195
AyTee Avatar answered Sep 20 '22 13:09

AyTee