https://kotlinlang.org logo
#android
Title
# android
v

veer

09/26/2018, 12:03 PM
Hi All, am getting the below error when trying to add databinding with kotlin in my project, apptransformDataBindingWithDataBindingMergeArtifactsForDebug appkaptDebugKotlin FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘appkaptDebugKotlin’.
There was a failure while executing work items
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution > java.lang.reflect.InvocationTargetException (no error message) Note: am trying to enable dataBindind for kotlin in a legacy code which already has Databinding using java, have applied apply plugin: ‘kotlin-kapt’ kapt “com.android.databindingcompiler3.1.4” please help
This problem was definitely not related to Kotlin!!! it was a problem with the improper usage of model within the xml, however, the error message could have been a little better by letting us know in detail whats wrong, took time to figure this out.