For example, I have a file named FOOBar.java that I want to rename to FooBar.java. After trying lots of stuff, I get the error:
FOOBar.java
FooBar.java
Try to restart the Android Studio!
I had this problem on a repository with no commits.