Kotlin gradle plugin 1.2.51


#1

I updated my Android studio to 3.2. It told me to update my kotlin gradle plugin version to 1.2.51 from 1.1.51. Now I am facing lots of type mismatch errors (e.g infered type is String? but expected String). The code was working with kotlin gradle plugin version 1.1.51.
Cant risk to change the existing codebase at this level.

Can anyone explain the reason suggest anything. Thanks in advance.


#2

I had the same issue and I solved it by changing the plugin version in the dependencies section of the buildscript in the build.gradle file :

buildscript {
    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.51"
    }
}

#3

Hi!

Can you please tell some more details on the issue like sharing the pieces of code where those errors appeared?