일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- arm-linux-androideabi
- 3rd framework
- 예금
- kotlin
- ios
- EditText
- audio record
- java
- Andorid
- ndk r24
- MG더뱅킹정기예금
- 청약
- Data Binding
- Mac
- RETROFIT
- BindingAdapter
- ChatGPT
- 달러예금
- Swift
- 새마을금고
- KB
- Android Studio
- 용산 호반써밋 에이디션
- 고금리
- ndkVersion
- JetPack
- 사전청약
- CHAT GPT
- Android
- gradle
- Today
- Total
pear
[android]data binding 5 - mistake error 본문
miss @JvmStatic
miss match attribute
<EditText
app:text_num='@{viewmodel.num}' />
miss match @BindingAdapter("text_num")
miss match @InverseBindingAdapter(attribute = "text_num", event = "android:textAttrChanged")
two-way-binding build message
The expression 'viewmodelNum.getValue()' cannot be inverted, so it cannot be used in a two-way binding
one-way-binding fatal message
java.lang.RuntimeException: Unable to start activity ComponentInfo{`package name`}: java.lang.IllegalStateException: Required DataBindingComponent is null in class ActivityBindingImpl. A BindingAdapter in `package name` is not static and requires an object to use, retrieved from the DataBindingComponent. If you don't use an inflation method taking a DataBindingComponent, use DataBindingUtil.setDefaultComponent or make all BindingAdapter methods static.
'android > kotlin' 카테고리의 다른 글
[android] Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules by implementation version (0) | 2023.07.17 |
---|---|
[android] viewmodel binding implementation (0) | 2023.07.11 |
[android]data binding 4 - app custom attribute (0) | 2023.06.01 |
[android]data binding 1 - simple example EditText (0) | 2023.06.01 |
[android]data binding 2 - BindingAdapter example EditText (0) | 2023.06.01 |