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类型不匹配所致,{}里字符串显示就行
<TextView
android:layout_width="30dp"
android:layout_height="50dp"
android:text="@={ `` +locationInfo.lat}"
/>