In the script below:
val kotlinVersion by extra ("1.3.61")
println("Version "+kotlinVersion)
plugins {
kotlin("jvm") version kotlinVersion
}
The variable kotlinVersion
is correctly printed. Nevertheless it is not recognized in the plugins
block and the following error is risen:
e: /home/achadde/sources/kotlin/minichain/build.gradle.kts:6:27: Unresolved reference: kotlinVersion
我怎么才能解决这个问题呢?