```Duplicate class kotlin.reflect.KClasses found i...
# announcements
p
Copy code
Duplicate class kotlin.reflect.KClasses found in modules jetified-kotlin-reflect-1.0.7.jar (org.jetbrains.kotlin:kotlin-reflect:1.0.7) and jetified-kotlin-stdlib-1.3.70.jar (org.jetbrains.kotlin:kotlin-stdlib:1.3.70)
Can anybody help me figure out this error? I am unable to run tests because of it
m
Looks like your project or one of its dependencies is using a really old version of
kotlin-reflect
. You should add
org.jetbrains.kotlin:kotlin-reflect:1.3.70
explicitly to ensure it uses the correct version. It would be even better would be if you don’t use
kotlin-reflect
at all on Android 🙂
p
Hi Marc I am not using kotlin reflect, looks like some dependency in my project requires it
m
Probably multiple ones, but with different versions. One of them is eqy too old!
p
adding the latest right now... thanks for your suggestion will let you know if it fixes it
well that did fix the build failure 🙌 thanks mate
m
👍 I hope it also works fine a runtime!
j
You can use gradle's dependencies task to see what caused it to be pulled in, and hopefully get an updated package that is known to work against 1.3.70