# Exceptions in tests after add compile kotlin line to gradle dependecies

**URL:** <https://discuss.kotlinlang.org/t/exceptions-in-tests-after-add-compile-kotlin-line-to-gradle-dependecies/5570>\
**Category:** Android\
**Created:** [November 27, 2017, 5:04pm UTC](https://discuss.kotlinlang.org/t/exceptions-in-tests-after-add-compile-kotlin-line-to-gradle-dependecies/5570 "2017-11-27T17:04:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sabagronen](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@sabagronen](https://discuss.kotlinlang.org/u/sabagronen)\
**Post date:** [November 27, 2017, 5:04pm UTC](https://discuss.kotlinlang.org/t/exceptions-in-tests-after-add-compile-kotlin-line-to-gradle-dependecies/5570/1 "2017-11-27T17:04:27Z")

</div>

Until now we had only Kotlin support for tests so we added the following lines to gradle:  
testCompile “org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin\_version”  
androidTestCompile “org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin\_version”

and everything worked fine, now we ready to move to add also production code in Kotlin so we added the following line:  
compile “org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin\_version”

but we faced the following exception from our tests:  
java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/Intrinsics;

any help will be appreciated
