android.databinding.tool.util.LoggedErrorException: Found data binding errors
16lz
2021-01-23
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 double on android.widget.TextView. file:E:\Project\AndroidStudioProjects\RetrofitLiveData\app\src\main\res\layout\fragment_event.xml loc:27:12 - 31:17 ****\ data binding error ****
这是databinding在界面绑定的bean属性格式和String类型不匹配所致,{}里字符串显示就行
更多相关文章
- Android项目中如果json字符串中key-value顺序很重要,不要使用Andr
- Android数据绑定Data Binding初体验
- Android 绑定数据到界面控件
- listview为空时,显示字符串
- android 字符串、颜色和尺寸
- Tabhost中Activity绑定Service
- Android DataBinding 字符串拼接
- Android xliff和字符串资源
- Android应用程序绑定服务(bindService)的过程源代码分析(2)