为什么我的Java文件在Android Studio上以编码格式打开

为什么我的Java文件在Android Studio上以编码格式打开

问题描述:

直到昨天所有文件都可以,但是今天当我尝试在android studio中打开Java文件时,其显示的编码格式如下:

Till yesterday all files are ok, but today when I tried to open java files in android studio, its showing encoded format like:

自从我备份后,我恢复了该备份,但是无法理解根本原因,因此可以提供任何帮助.

Since I have backup, I reverted that, but unable to understand the root cause any help would be appreciable.

您的Build文件夹已损坏,您需要重新生成项目.

Your Build folder is corrupt you need to rebuild the project.

第一件事

文件->使缓存无效/重新启动

File->Invalidate caches/Restart

如果这不起作用,请尝试重建您的项目

If this doesn't work try rebuilding your project

Build->清理项目然后生成->重建项目

Build->Clean Project then Build->rebuild project

如果仍然没有运气?关闭Android Studio尝试以下操作:

If still no luck? Close Android Studio Try these:

1:清除Android Studio缓存删除这个资料夹C:\ Users%username%.AndroidStudio4.0 \ system \ caches检查问题是否解决

1: Clear Android Studio Cache Delete this folder C:\Users%username%.AndroidStudio4.0\system\caches Check if the problem is solved

2:手动重建删除此文件夹,然后重试C:\ Users%username%\ AndroidStudioProjects<项目名称> \ app \ build

2: Rebuild manually Delete this folder and try again C:\Users%username%\AndroidStudioProjects<project name>\app\build