简体   繁体   English

Android数据绑定调试

[英]Android Data binding debugging

I'm starting with android's databinding tools but every time i come to run the program i get a build error that my.package.databinding does not exist. 我从android的数据绑定工具开始,但是每次我运行该程序时,我都会得到一个my.package.databinding不存在的构建错误。 that is the only error i get: 那是我得到的唯一错误:

 Error:(15, 47) error: package a.b.c.d.databinding does not exist

the i try to review all the bindings and i finally find the problem. 我尝试查看所有绑定,最后发现问题。 but this process is too slow and will get slower as i use more bindings. 但是这个过程太慢了,随着我使用更多的绑定,这个过程会变得越来越慢。

is there any way that the build process or gradle tells me exactly what is the probelm with my code and why they could'nt create the binding classes. 有什么方法可以使构建过程或gradle准确地告诉我我的代码是什么以及为什么他们不能创建绑定类。

thanks. 谢谢。

The best place to report this is b.android.com. 最好的报告方式是b.android.com。

We've received some reports that when there is a java code mistake, sometimes, it does not build binding files which is wrong but we are struggling to reproduce it. 我们已经收到一些报告,当Java代码有错误时,有时它不会建立错误的绑定文件,但我们正在努力重现它。

So if you can create a bug report w/ a project to reproduce, we'll try to fix it asap. 因此,如果您可以创建一个带有项目的错误报告以进行重现,我们将尽快修复它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM