Reputation: 19416
After adding Kotlin to a module I get the following error when syncing:
Error:null cannot be cast to non-null type org.jetbrains.kotlin.gradle.internal.WrappedVariantData
I added the kotlin plugin to this project. It is an appengine module. I'm running: AS 2.3.2 gradle 3.4 kotlin 1.1.2-3
using these plugins:
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin'
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'appengine'
apply plugin: 'idea'
Any ideas?
Upvotes: 1
Views: 609
Reputation: 19416
This is a known bug in the kotlin-kapt plugin. There is a fix in 1.1.3, which is currently in EAP and should be released very soon to stable(June 2017).
More info: https://youtrack.jetbrains.com/issue/KT-17999#tab=Comments
Upvotes: 1