Unable to rename resource files (layout) (Android Studio 3.0 Beta 3 is installed)

Asked

Viewed 194 times

1

Beta 3 does not allow renaming resource files such as layout files. It shows the rename dialog box, but when trying to apply changes, reads the following error message:

Refactoring cannot be performed File .../myapplication/R.java is read-only

R.java is read-only

Any idea how to fix this?

2 answers

0

This kind of mistake I can usually solve by cleaning up the project. Go to Build > Clean Project menu. Wait to finish, then try renaming again.

  • I already tried to clean up the project and the error continues. I also did the steps of Stackoverflow English (link below @Roman) and also did not solve.

  • From what I saw on issuetracker has enough people with this problem, maybe some bug with an Android Studio update. Tries to open the project in a stable version of Android Studio and rename. It is not the best solution, but should work while not fix the problem.

-2

  • Welcome to Stack Overflow in English. In case you Haven’t noticed, this is the SO Portuguese community. Please Edit and Translate your Answer.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.