Android的工作室:导入图像重构时,不能进行 [英] Android Studio: Refactoring cannot be performed when importing images

查看:797
本文介绍了Android的工作室:导入图像重构时,不能进行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

突然,今天上午我无法PNG文件拖动到Android Studio中我绘制的文件夹。我得到不能执行重构 - 文件是只读的消息。我已经证实,这些文件不是只读,并已在我的Mac上不同位置的众多图像文件尝试这个。任何想法,这可怎么固定的吗?

All of a sudden this morning I am unable to drag png files into my drawable folders in Android Studio. I get the message "Refactoring cannot be performed - the file is read-only". I have confirmed that these files are not read only and have tried this with numerous image files in different locations on my Mac. Any ideas as to how this can be fixed please?

PS - 这是发生在我所有的Andr​​oid Studio项目。我在OS X 10.9.3

PS - This is occurring in all my Android Studio projects. I am running Android Studio 0.5.9 on OS X 10.9.3

推荐答案

我设法以某种方式解决这个问题。只需复制并粘贴* .png格式在您绘制文件夹需要拖动它代替。原来有一个问题,移动它

I managed to solve it somehow. Just copy and paste the *.png you need in your drawable folder instead of dragging it. Turns out there's a problem with moving it

后来编辑:按住ALT,同时拖动文件还应该做的工作。由于@RunLoop

Later edit: holding ALT whilst dragging the files should also do the job. Thanks @RunLoop

这篇关于Android的工作室:导入图像重构时,不能进行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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