Die Kotlin-Version für den Gradle-Build unterscheidet sich von der Version im IDE-Plugin
Hallo zusammen! Ich bin neu in der Kotlin- und Android-Entwicklung. Ich verwende Android Studio 3.0. Heute bin ich auf einen seltsamen Fehler beim Build des Projekts gestoßen. Es wird angezeigt:
"kotlin version that is used for building with gradle (1.1.2-5) differs from the one bundled into the IDE plugin (1.1.2-4)"
Ich verstehe nicht, was das bedeutet. Eigentlich sind alle Einstellungen standardmäßig. Hier ist mein build.gradle (Projekt):
```kotlin
buildscript {
ext.kotlin_version = '1.1.2-5'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
```
Und build.gradle des Moduls:
```kotlin
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 26
defaultConfig {
applicationId "com.example.myapp"
minSdkVersion 16
targetSdkVersion 26
v
Noch keine Antworten.
Anmelden um eine Antwort zu hinterlassen