is there any way of applying the kotlin plugin in ...
# announcements
m
is there any way of applying the kotlin plugin in every module without the need to apply plugin: ‘kotlin-android’ ?
h
myanmarking: something like
Copy code
subprojects { 
    apply plugin: 'kotlin-android'
}
m
Copy code
Error:(28, 0) Extension with name ‘android’ does not exist. Currently registered extension names: [ext, kotlin]
for some reason, i can’t
h
@myanmarking Try
subprojects { afterEvaluate { apply plugin: 'kotlin-android' } }
, but then in your subprojects buildscripts you'll have to configure Kotlin in
afterEvaluate { ... }
blocks as well, if you need.
m
ok. thanks for your hellp
r
I wonder if this would work if you used the new plugin syntax?