Join Slack
Powered by
Can i migrate a groovy android project to kotlin c...
# announcements
s
Sergio Crespo Toubes
04/20/2018, 10:49 AM
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
mannodermaus
04/20/2018, 11:31 AM
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
3
Views
Open in Slack
Previous
Next