Hi! First time using lKotlin and IDEA. I'm trying ...
# getting-started
p
Hi! First time using lKotlin and IDEA. I'm trying to use the dotenv package but somehow I cannot make my code run. I've added the dependencies and the import this way:
Copy code
// 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?