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

Maku Mazakpe

01/24/2020, 4:15 PM
Hey guys. I have thus on click method, and the view model method,trying to log one value in console. And I get this error. What I'm I missing? [1/24, 6:41 PM] Tosg: Nice!!! [1/24, 7:10 PM] Maku: <Button android:onClick="@{() -> viewModel.sendUserDetails(value)}" ... /json user request method fun sendUserDetails(value: String) { Timber.d("user values "+ value) // dprobe json object 1 var gson = JsonObject() val data = JsonObject() data.addProperty("email", value) // parse the json object val jsonParser = JsonParser() gson = jsonParser.parse(data.toString()) as JsonObject .... ANTLR Tool version 4.5.3 used for code generation does not match the current runtime version 4.7.1ANTLR Runtime version 4.5.3 used for parser compilation does not match the current runtime version 4.7.1ANTLR Tool version 4.5.3 used for code generation does not match the current runtime version 4.7.1ANTLR Runtime version 4.5.3 used for parser compilation does not match the current runtime version 4.7.1/home/maku/Documents/Android/PotSwatch/app/build/generated/source/kapt/debug/com/maku/potswatch/DataBinderMapperImpl.java11 error: cannot find symbol import com.maku.potswatch.databinding.SignUpFragmentBindingImpl; ^ symbol: class SignUpFragmentBindingImpl
Task appkaptDebugKotlin FAILED
location: package com.maku.potswatch.databinding FAILURE: Build failed with an exception. * What went wrong: Execution failed for task 'appkaptDebugKotlin'.
A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution
> java.lang.reflect.InvocationTargetException (no error message)
i

itnoles

01/24/2020, 5:07 PM
you should fix the antlr4 bug too
post your build.gradle in pastebin then link it to here
m

Maku Mazakpe

01/26/2020, 5:37 AM
Okay