Eclipse删除出错:exception has been caught while processing the refactoring 'Rename package'

This refactoring function in Eclipse for package names used to work for me fine until... today:

This is the first time I am receiving this weird Refactoring error, and I have no idea what to make of it:

An exception has been caught while processing the refactoring 'Rename Package'.

Reason: Problems encountered while moving resources.

Click 'Undo' to undo all successfully executed changes of the current refactoring. Click 'Abort' to abort the current refactoring.

What could possibly explain this sudden "change of heart" and how do I fix it?

Eclipse删除出错:exception has been caught while processing the refactoring 'Rename package'_第1张图片

share | improve this question
 
1  
Perhaps something about your project is corrupted. Have you tried shutting down Eclipse and starting it, and trying again? –   nicholas.hauschild  Apr 17 '11 at 19:30
 
@nicholas.hauschild Yes, I did try shutting down Eclipse and starting it, even before posting my request for help. I am totally baffled by this unpredictable behavior of one of the best tools on planet Earth. I even tried cleaning the entire project and building it - to no avail. The funny thing is that the project build and runs perfectly! It's only package name refactoring that stopped working for some reason. This is weird. Thanks & + 1 for your attempt to help. –   Android Eve  Apr 17 '11 at 19:36 

6 Answers

active oldest votes
up vote 4 down vote accepted

Seems from your snapshot that you are running windows 7, maybe vista. If its not a renaming issue, try running eclipse as administrator. It might be permissions-related, but its just a thought.

I see merit behind what Kurru is saying. Windows is not a case-sensitive operating system, meaning that is sees the words Cat and cat as the same thing. When you rename your package, Eclipse creates new directories/folder to put the package in. If you changed the case of your words and not actually rename it, it could throw this error.


一般情况下我都是使用ALTrun来启动eclipse,现在只能使用“管理员权限”来打开eclipse了。

你可能感兴趣的:(android)