I am trying to introduce Kotlin to my Java only android project. Since we have an older gradle version(3.0.1), i got kotlin 1.3.0 so i can start kotlin with least possible changes to existing libraries.
I was able to create two new classes in kotlin and write a test for one successfully. The second test, when i run it, it gives an Unresolved reference on the POJOs i am importing. The only diff i see in these classes are, while other classes were in src/test/java/com.example/utils, these classes are in src/test/java/com.example with no folder.
Is there anything in the set up i am missing?
Here are the configuration changes i made: (app still runs fine but only the tests fail)
apply plugin: ‘kotlin-android’
apply plugin: ‘kotlin-android-extensions’
main.java.srcDirs += ‘src/main/java’