Android数据绑定生成的文件在编码时消失
当我编写代码时删除 Fragment*Binding 文件时,我遇到一个奇怪的问题(所有引用都未解析,生成的文件在文件系统中不存在),可以通过清理项目修复 - >做这个项目但是很耗时。
这种行为每小时发生3-4次。 原本以为可能被杀毒软件删除了,结果检查发现所有与开发相关的路径都在Av例外中。 Android studio bumblebee 最新更新(之前也发生过几次更新)
I am facing a strange problem when Fragment*Binding files are deleted while I am writing code (all references become unresolved, generated files absent in files system) that can be fixed by clean project-> make the project but it is time-consuming.
Such behavior occurs 3-4 times per hour.
Originally I thought I might be deleted by antivirus software, but I checked that all paths related to development are in Av exceptions.
Android studio bumblebee latest updates (happened few updates before too)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先确保您使用的依赖项已更新到最新版本,并且您的 Gradle 和 Gradle 插件也是最新的并且彼此兼容。
另请检查您是否使用最新的 Android Studio Bumblebee 版本
清理或重建项目的快捷方式:
按 Shift 键两次,然后搜索“清理”或“重建”并按 Enter
First make sure that the dependencies you are using are updated to their latest version also your Gradle and Gradle Plugin are latest and compatible with each other.
Also check if you are using the latest Android Studio Bumblebee version which is
Shortcut for clean or rebuild project :
Press Shift Key twice and then search 'clean' or 'rebuild' and press Enter
我也遇到了同样的问题,这是因为 gradle,有一段时间我更改了 gradle 版本(应该测试较低或更高版本)(需要使缓存无效并重新启动),然后使用该
gradle
一段时间,然后将其改回来并且修复了I had the same problem and it was because of
gradle
, for a while i changed thegradle
version (lower or higher should be tested) (requires invalidate cache and restart), then worked with thatgradle
for a while then changed it back and it was fixes