Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio: Refactoring cannot be performed when importing images

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 - This is occurring in all my Android Studio projects. I am running Android Studio 0.5.9 on OS X 10.9.3

like image 453
RunLoop Avatar asked Jun 05 '14 05:06

RunLoop


1 Answers

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

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

like image 154
DDsix Avatar answered Nov 15 '22 11:11

DDsix