Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

item_one.xml中的一处疑问? #38

Closed
66668 opened this issue May 11, 2017 · 2 comments
Closed

item_one.xml中的一处疑问? #38

66668 opened this issue May 11, 2017 · 2 comments

Comments

@66668
Copy link

66668 commented May 11, 2017

我自己练习了大神的代码,发现这行总是提示bug,删除这行就正常运行,
位置:app--res--item_one.xml--的:android:showMovieImg="@{subjectsBean.images.large}"
提示bug:
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.

java.lang.RuntimeException: Found data binding errors.
****/ data binding error ****msg:Cannot find the setter for attribute 'android:showMovieImg' with parameter type java.lang.String on android.widget.ImageView.
file:E:\as_workspace\ISS\app\src\main\res\layout\item_one.xml
loc:35:40 - 35:64
****\ data binding error ****
求解答!!!

还有一处疑惑:databindinghelper.jar包为啥子放在工程下,而不放在module的libs下,求解答!!

@youlookwhat
Copy link
Owner

你那个可能是showMovieImg里具体操作的问题,这里是展示图片的控件,你可以看一下我的源码,因为我的没有出现这样的情况,所以我也不能具体和你分析。
databindinghelper.jar 相当于一个插件,而不是一个三方lib

@66668
Copy link
Author

66668 commented May 15, 2017

问题解决了,没有引用ImgLoadUtil.java这个工具类,导致找不到。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants