This message was deleted.
# community-support
s
This message was deleted.
g
Using
import org.jetbrains.kotlin.config.JvmTarget
does not fix the problem.
v
You don't have the Android plugin in the build script classpath, so you cannot use classes from it in your build script. You would need to add it as dependency to your build script classpath to import and use the class. But actually, using script plugins - the things you use with
apply from
has many quirks and is highly discouraged. You should use precompiled script plugins instead. And as a personal note, I would also highly recommend using Kotlin DSL. You immediately get type-safe build scripts, actually helpful error messages if you mess up the syntax, and amazingly better IDE support if you use a proper IDE like IntelliJ IDEA. 🙂