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.java
11 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)