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

Plugin Error 不能生成对应的ViewModel #4

Closed
ghost opened this issue Apr 28, 2016 · 7 comments
Closed

Plugin Error 不能生成对应的ViewModel #4

ghost opened this issue Apr 28, 2016 · 7 comments

Comments

@ghost
Copy link

ghost commented Apr 28, 2016

Plugin Error: DBinding plugin threw an uncaught StringIndexOutOfBoundsException.
StringIndexOutOfBoundsException: String index out of range:-1

我在Android studio 2.0.0 和 2.1.0 上都会报这个错误

@bananaCaptain
Copy link

插件没有反应 无法使用

@bananaCaptain
Copy link

好像安装好插件后,重启电脑就可以用了!!!努力,感谢!

@ghost
Copy link
Author

ghost commented Apr 29, 2016

@bananaCaptain 重启电脑之后也还是那个错误,开发环境 mac

@kaleai
Copy link
Owner

kaleai commented Apr 29, 2016

之前也有人上报,我近期看看。

@kaleai
Copy link
Owner

kaleai commented May 2, 2016

@AlphaBoom 你直接加我 460412008@qq.com

@ghost
Copy link
Author

ghost commented May 5, 2016

感谢 @tianzhijiexian 经过一上午排查问题。
问题原因:由于在layout 使用<import>形式导入的类。该插件是通过type 字段来创建相应model。
解决方案:在type中写完整路径,不使用<import>标签及其他形式。

@ghost ghost closed this as completed May 5, 2016
@kaleai
Copy link
Owner

kaleai commented May 5, 2016

我是觉得一个layout里面一种类型的vm肯定只有一个,所以写全名更加简单和好管理,在现在的阶段xml中我强烈建议不要做过多的逻辑和操作。具体参考我的详细文档,文档之外给出的功能,我很可能是不支持的。感谢你的配合,感谢!

This issue was closed.
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