I have a multimodule project on Kotlin 1.9.20, whe...
# multiplatform
l
I have a multimodule project on Kotlin 1.9.20, where one (and only one) module errors when I use the new
androidTarget
, saying it doesn't exist. I see a warning in my IDE that
android
target is deprecated, suggesting that I change it, but sync fails if I do. Is there something I'm missing?
The build.gradle.kts file is pretty standard, and almost copy/paste from the other modules, which do work.
f
Are you applying the default hierarchy? kotlin { applyDefaultHierarchyTemplate() androidTarget() }
l
I'm not, but I was under the impression that 1.9.20 does so automatically.
I should probably clarify my 'doesn't exist' to say it gives a syntax error saying androidTarget is not defined. I'm not sure if that module is somehow still using the kmp 1.8.20 gradle plugin or something, but from my understanding of gradle, one module can't have a different plugin version.