03-21 00:21
Notice
Recent Posts
Recent Comments
03-21 00:21
«   2026/03   »
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
Archives
Today
Total
관리 메뉴

pear

[android] DataBinderMapperImpl.java:9: error: cannot find symbol 본문

android

[android] DataBinderMapperImpl.java:9: error: cannot find symbol

pearlab 2023. 7. 20. 14:11

    private var _value = MutableLiveData<String>()
    val value: LiveData<String> get() = _value

@={viewmodel.value}

 

solution

   var value = MutableLiveData()

@={viewmodel.value}

or

 

private var _value = MutableLiveData<T>()

    val value: LiveData<T> get() = _value

    private var value = MutableLiveData()

@={viewmodel.value.member}

 

 

 

Sample/app/build/generated/ap_generated_sources/debug/out/com/test/testapp/DataBinderMapperImpl.java:9: error: cannot find symbol
import com.test.testapp.databinding.ActivitySampleBindingImpl;
                                            ^
  symbol:   class ActivitySampleBindingImpl
  location: package com.test.testapp.databinding