我有两路数据绑定可观察 在上次更新的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 ****
答案 0 :(得分:1)
尝试从您的Android根项目中删除.gradle,.idea,gradle文件夹,至少它对我有用
答案 1 :(得分:0)
我认为这是一些sdk问题,它在更新下一个补丁后解决了。