Android 数据绑定错误
Android databinding error
我有两种可观察的数据绑定方式
在上次更新的 sdk 中,我遇到了这样的问题。谁遇到过这个?
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> android.databinding.tool.util.LoggedErrorException: Found data binding errors.
****/ data binding error ****msg:Cannot find the getter for attribute 'android:text' with value type java.lang.String on android.support.design.widget.TextInputEditText.
file:C:\Users\Tom\Desktop\projects\androidstudio\work_projects\projects\app\src\main\res\layout\medcard_edit.xml
loc:83:20 - 95:53
****\ data binding error ****
****/ data binding error ****msg:Cannot find the getter for attribute 'android:text' with value type java.lang.String on android.widget.EditText.
file:C:\Users\Tom\Desktop\projects\androidstudio\work_projects\novamed\novamed_android\app\src\main\res\layout\activity_address_picker.xml
loc:42:12 - 48:36
****\ data binding error ****
****/ data binding error ****msg:Cannot find the getter for attribute 'android:text' with value type java.lang.String on android.widget.EditText.
file:C:\Users\Tom\Desktop\projects\androidstudio\work_projects\novamed\novamed_android\app\src\main\res\layout\activity_payment_card_picker.xml
loc:21:8 - 37:54
****\ data binding error ****
我认为是sdk的问题,更新下一个补丁后解决了。
尝试从根 android 项目中删除 .gradle、.idea、gradle 文件夹,至少对我有用
我有两种可观察的数据绑定方式 在上次更新的 sdk 中,我遇到了这样的问题。谁遇到过这个?
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> android.databinding.tool.util.LoggedErrorException: Found data binding errors.
****/ data binding error ****msg:Cannot find the getter for attribute 'android:text' with value type java.lang.String on android.support.design.widget.TextInputEditText.
file:C:\Users\Tom\Desktop\projects\androidstudio\work_projects\projects\app\src\main\res\layout\medcard_edit.xml
loc:83:20 - 95:53
****\ data binding error ****
****/ data binding error ****msg:Cannot find the getter for attribute 'android:text' with value type java.lang.String on android.widget.EditText.
file:C:\Users\Tom\Desktop\projects\androidstudio\work_projects\novamed\novamed_android\app\src\main\res\layout\activity_address_picker.xml
loc:42:12 - 48:36
****\ data binding error ****
****/ data binding error ****msg:Cannot find the getter for attribute 'android:text' with value type java.lang.String on android.widget.EditText.
file:C:\Users\Tom\Desktop\projects\androidstudio\work_projects\novamed\novamed_android\app\src\main\res\layout\activity_payment_card_picker.xml
loc:21:8 - 37:54
****\ data binding error ****
我认为是sdk的问题,更新下一个补丁后解决了。
尝试从根 android 项目中删除 .gradle、.idea、gradle 文件夹,至少对我有用