Anyone else having problems after upgrading to 1.2...
# announcements
a
Anyone else having problems after upgrading to 1.2.7x ?
Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 0.25.0, expected version is 1.1.11.
cannot compile anymore
h
Show us your grade file
a
Copy code
buildscript {
    ext.kotlin_version = '1.1.1'
    repositories {
        mavenCentral()
        jcenter()
    }
    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.2.3.RELEASE'
        classpath 'org.springframework:springloaded:1.2.1.RELEASE'
        //classpath "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
        classpath 'org.hidetake:gradle-ssh-plugin:1.6.0'
    }
}

apply plugin: 'java'
apply plugin: 'spring-boot'
apply plugin: 'kotlin'
apply plugin: 'war'
apply plugin: 'idea'
apply plugin: 'org.hidetake.ssh'

sourceCompatibility = '1.8'
targetCompatibility = '1.8'

repositories {
    mavenCentral()
    jcenter()
}

dependencies {
    compile fileTree(dir: 'libs', include: '*.jar')
    compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
    compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
    ...
}

sourceSets {
    main.java.srcDirs += 'src/main/kotlin'
}
had to omit some stuff, but basically this. Also same problem in other projects
h
seems like the plugin cache is old
a
I installed an older version of intellij and now it works again
m
Me!
kapt
and Android databinding used to get along. Now they don’t. And I find
kotlin.jvm.internal.Intrinsics
missing: https://stackoverflow.com/questions/52491596/android-giving-a-linearlayoutmanager-to-a-recyclerview-results-in-failed-resolu
We’ve got kotlin 1.2.71 now btw