Pablo Markaide
12/11/2024, 2:46 PM// Main.kt
import io.github.cdimascio.dotenv.dotenv
// build.gradle.kts
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.9.24")
implementation("io.github.cdimascio:dotenv-kotlin:6.4.2")
}
When trying to use the run with the GUI seem that the package cannot be recognized. But ./gradle build
builds correctly. IDEA marks the github part of import in red and says "Unresolved reference: github"
I've tried adding the dependency at runtime, changing java versions and many iterations, but nothing works.
Can someone explain what I missing or what I shall check?