https://kotlinlang.org logo
#kapt
Title
# kapt
g

greenrobot

06/01/2017, 7:46 PM
Copy code
org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':tests:xxx-kotlin-test'.
caused by

kotlin.TypeCastException: null cannot be cast to non-null type org.jetbrains.kotlin.gradle.internal.WrappedVariantData<*>
	at org.jetbrains.kotlin.gradle.internal.Kapt3KotlinGradleSubplugin.createKaptKotlinTask(Kapt3KotlinGradleSubplugin.kt:260)
	at org.jetbrains.kotlin.gradle.internal.Kapt3KotlinGradleSubplugin.apply(Kapt3KotlinGradleSubplugin.kt:150)
	at org.jetbrains.kotlin.gradle.internal.Kapt3KotlinGradleSubplugin.apply(Kapt3KotlinGradleSubplugin.kt:54)
	at org.jetbrains.kotlin.gradle.plugin.SubpluginEnvironment.addSubpluginOptions(KotlinPlugin.kt:679)
	at org.jetbrains.kotlin.gradle.plugin.Kotlin2JvmSourceSetProcessor$doTargetSpecificProcessing$1.execute(KotlinPlugin.kt:121)
	at org.jetbrains.kotlin.gradle.plugin.Kotlin2JvmSourceSetProcessor$doTargetSpecificProcessing$1.execute(KotlinPlugin.kt:93)
	at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:89)
h

h0tk3y

06/08/2017, 1:51 PM
greenrobot: This issue has been fixed in the 1.1.2-4 release. Please make sure you have
1.1.2-4
as the version of
kotlin-gradle-plugin
in your project root
build.gradle
, the
buildscript
dependencies
block.
g

greenrobot

06/08/2017, 1:53 PM
good to know, 1.1.2-4 has problems with Android Studio (2.3.2) however...
h

h0tk3y

06/08/2017, 1:56 PM
Could you please describe the problems you encountered with AS 2.3.2 or provide a link if they have already been mentioned somewhere?
g

greenrobot

06/08/2017, 2:22 PM
Will try again later
👍 1
2 Views