Hi all, Today i tried to convert my build.gradle i...
# android
m
Hi all, Today i tried to convert my build.gradle into build.gradle.kts. I followed kotlin DSL syntax, but my android { <-- shows error ... } --------------- this is my project level build file
Copy code
classpath("com.android.tools.build:gradle:3.6.3")
 classpath(kotlin("gradle-plugin", version = "1.3.72"))
In my app module. android block not getting recognised. Can any one help me out this?
v
did you apply the android library plugin?
m
@Vincent Williams Yes, I have applied android and android-extension in my app module. like this
plugins {
kotlin("android")
kotlin("android.extension")
}
but still my android block was not recognized.
v
you need
com.android.application
or if its a library module
com.android.library
m
I added that too. after adding this line I rebuild my project but still error remains
v
try cleaning the cache and restarting
also it should be
id("com.android.application"
not
kotlin("com.android.application")
m
okay will try