Fehler "Kotlin runtime JAR files in the classpath should have the same version": was tun?
Hallo! Ich bin neu in Kotlin und versuche, mein erstes Projekt mit Gradle zu bauen. Ich habe eine einfache Datei `Main.kt`:
```kotlin
fun main() {
println("Hello, Kotlin!")
}
```
Ich habe das Kotlin-Plugin in `build.gradle.kts` eingebunden:
```kotlin
plugins {
kotlin("jvm") version "1.8.0"
}
```
Aber wenn ich den Build mit `./gradlew build` starte, erhalte ich folgende Warnung:
```
warning: Kotlin runtime JAR files in the classpath should have the same version (found 1.8.0, 1.7.10 in classpath)
```
Ich habe meine Abhängigkeiten überprüft – ich habe nichts Drittes, nur die Standard-Kotlin-Bibliothek. Warum tritt diese Warnung auf? Ich verwende IntelliJ IDEA, falls das wichtig ist. Bitte erklärt, was das bedeutet und wie man es behebt. Vielen Dank im Voraus!
Noch keine Antworten.
Anmelden um eine Antwort zu hinterlassen
Blogs