android studio 使用误操作

图片说明

文件无法编译 也不提示错误
android studio也没有开启省电模式

把该文件删除 git重新拉取也没有这样文件
直接重新复制也会变成这样

解决了 谢谢

你是不是在LoginByNotePresenter.java文件中把类名改成了LoginContract
重命名请邮件该java文件选择refactor->rename

Step 1: Click “File”==> “Settings”

Step 2: Expand “Editor” & Click “File Types”

Step 3: You will see all file types on Right. Navigate to the “Text Files” and Click it

Step 4: You should able to see your file name on the bottom of Registered Patterns (lower box)

Step 5: Remove your file from the Registered Patterns. The problem should solved and let you to rename with fileName.java

Step 6: If not, delete the file from the project and create it again with name fileName