일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- JetPack
- Data Binding
- KB
- 고금리
- EditText
- audio record
- ios
- kotlin
- 3rd framework
- RETROFIT
- Android Studio
- ChatGPT
- 새마을금고
- BindingAdapter
- ndk r24
- Mac
- arm-linux-androideabi
- Swift
- Android
- 사전청약
- CHAT GPT
- 청약
- 달러예금
- Andorid
- gradle
- 예금
- MG더뱅킹정기예금
- 용산 호반써밋 에이디션
- ndkVersion
- java
- 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 |