无法重命名资源(布局)文件(已安装Android Studio 3.0 Beta 3) [英] Can't rename resource (layout) files (Android Studio 3.0 Beta 3 is installed)
问题描述
Beta 3不允许重命名资源文件,例如布局文件.它确实显示了重命名对话框,但是当尝试应用更改时,它会显示以下错误消息:
Beta 3 doesn't allow to rename resource files such as layout files. It does show the renaming dialog, but when trying to apply changes it reads the following error message:
Refactoring cannot be performed
File .../myapplication/R.java is read-only
我在邻居目录中也有Beta 2版本,并且重命名效果完美.有任何解决办法的想法吗?
Also I have Beta 2 version in a neighbor directory and renaming works perfect. Any ideas how to fix that?
UPD: 我报告了该错误(#65079508),现在将其标记为65032914的重复 https://issuetracker. google.com/issues/65032914
UPD: I reported the bug (#65079508), and now it is marked as a duplicate of 65032914 https://issuetracker.google.com/issues/65032914
因此,问题甚至更广泛了,如果我理解得很好,该错误将在Studio的某些新版本中修复.
So, the issue is even wider and if I understand it well the bug will be fixed in some coming version of the Studio.
UPD#2: Beta 4已发布.该错误仍未修复.
UPD#2: Beta 4 is released. The bug is still not fixed.
UPD#3 已在Beta 5中修复.
UPD#3 Fixed in Beta 5.
推荐答案
meh,只需删除生成的文件&&然后重构.
meh, just get rid of the generated files && then refactor.
分级-> 应用-> 构建-> 干净.
Gradle --> app --> build --> clean.
这篇关于无法重命名资源(布局)文件(已安装Android Studio 3.0 Beta 3)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!