I upgraded to Kotlin 1.3 but now my Unit Tests don't work anymore (Unresolved Reference)


#1

I tried: Why org.testng becomes Unresolvable reference in kotlin tests? doesn’t solve the issue.

I upgraded to Kotlin 1.3, ran code migration tool but now it’s giving me these errors, any idea what’s causing it?

image

When I delete the tests from my project it compiles normally, so the issue is with the tests.


#2

It may be a build cache issue, try to clean out everything. Could you help us explain where those reference come from?


#3

I just refreshed the project and now I get even more Unresolved References…

All of the references are from different .kt files

image

First unsolved reference:
image
image

Note that all of this was working on 1.2 kotlin, it started messing up in 1.3

I just looked at maven it looks like the coroutines-core library is not working?
image

If anyone wants to have a look at the full code it’s over here:


#4

Try updating your coroutines library version to 1.0.1 (latest). Btw. eap releases are expected to be unstable and have no compatibility guarantees (the eap version of the compiler actually creates a marker refusing compilation with of eap classes into non-eap code).


#5

After updating to the 1.0.1 library it now compiles again thanks!