Can i migrate a groovy android project to kotlin c...
# announcements
s
Can i migrate a groovy android project to kotlin class by class? or i have to migrate all project to kotlin for compile? I am getting this error "Unresolved reference" trying to use a groovy class.
m
You need to define the dependency between Groovy and Kotlin explicitly, and this will only be unidirectional (so, if you want to call Groovy from Kotlin, you mustn’t call Kotlin from Groovy as well, and vice-versa). I’ve done it here: https://github.com/mannodermaus/android-junit5/blob/master/android-junit5/build.gradle#L15
👍 1