Android Studio重构失败(只读) [英] Android studio refactoring fail (read-only)

查看:100
本文介绍了Android Studio重构失败(只读)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法重构(重命名)布局中的任何内容,我已经尝试过重建和清理项目以及发现的许多解决方案,但没有一个奏效. 我可以直接在文件系统中执行此操作,也可以在Studio中手动执行操作(因此我还必须查找和更改使用它的每一行,但这是缓慢而危险的过程) AS 3.0 beta 3,Debian 9 https://i.stack.imgur.com/v3Fq2.png

解决方案

测试版

Beta 3被召回",原因是他们在发布后发现了一个错误. 选中此项以供参考 .您应该还原到Android Studio 3 beta 2,它可能会解决此问题. Beta 2可以从Android Studio网站下载. 该错误本身似乎同时影响Beta 3和Beta4.对此没有太多处理,并且恢复到Beta 2仍然是到目前为止的最佳选择. Beta 5可能会修复它,但没有办法知道.


根据问题跟踪器,此错误已在Beta 5中修复. .

I cannot refactor (rename) anything in my layouts, I already tried rebuilding and cleaning the project and many solutions i found, but none worked. I can do it directly in file system, or manually in Studio (so I also have to find and change every line where it is used but it is slow and dangerous process) AS 3.0 beta 3, Debian 9 https://i.stack.imgur.com/v3Fq2.png

解决方案

Beta 3 was "recalled" due to a bug they found after the release. Check this for reference. You should revert to Android Studio 3 beta 2 and it may fix the problem. Beta 2 can be downloaded from the Android Studio website. The bug itself appears to be affecting both Beta 3 and 4. There isn't much to do about it, and reverting to beta 2 still looks like the best option as of now. Beta 5 may fix it, but there is no way of knowing.


The bug has since been fixed in beta 5, according to the issue tracker.

这篇关于Android Studio重构失败(只读)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆