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

提示未找到选中的布局文件,但是实际是有的 #12

Open
zxq9133 opened this issue Nov 29, 2017 · 10 comments
Open

提示未找到选中的布局文件,但是实际是有的 #12

zxq9133 opened this issue Nov 29, 2017 · 10 comments

Comments

@zxq9133
Copy link

zxq9133 commented Nov 29, 2017

image

如图,谢谢

@wangzailfm
Copy link
Owner

感谢提醒

@zxq9133
Copy link
Author

zxq9133 commented Nov 29, 2017

所以想请教一下查找布局文件是如何查找的,我同样的gradle版本以及插件配置,一个项目里可以正常使用butterknife以及GenerateFindViewById,另一个项目中却不能使用。。android studio 3.0以及3.0.1版本都是这样

@wangzailfm
Copy link
Owner

布局文件是查找整个项目里面的,如果一个项目有多个模块,会判断是不是同个模块下的

@zxq9133
Copy link
Author

zxq9133 commented Nov 29, 2017

是同个模块下的,可能是as bug吧,之前都使用好好的,前几天升级了一下,发现不能用了。谢谢了!

@meijingkang
Copy link

我的也提示找不到文件

@wangzailfm
Copy link
Owner

具体是什么情况

@meijingkang
Copy link

@wangzailfm@zxq9133 贴的图一样,都是报找不到选中的布局文件

@wangzailfm
Copy link
Owner

@meijingkang as版本也是3.0的吗,我周末找时间调调

@zxq9133
Copy link
Author

zxq9133 commented Dec 6, 2017

@wangzailfm @meijingkang 应该是as3.0的bug,我重新修改一下布局文件名再改回来就可以了,但是只对于rename过的布局文件才有用。我安装了最新的as 3.1canary4版本,发现没有这个bug了,不过as 3.1canary4作为测试版本还不稳定,暂时先用as 3.0修改布局文件名称再改回来的方式处理了。。

@wangzailfm
Copy link
Owner

wangzailfm commented Dec 6, 2017

@zxq9133 非常感想,可以下载试试1.4.2之前的版本https://plugins.jetbrains.com/plugin/9273-generatefindviewbyid

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

3 participants