非正常关机后的And​​r​​oid工作室损坏.java文件 [英] Android Studio Corrupted .java file after improper shutdown

查看:175
本文介绍了非正常关机后的And​​r​​oid工作室损坏.java文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我蛰伏我的笔记本电脑时,机器人工作室跑,后来发现笔记本电脑已经关机。现在,我的源文件,一个是空出现在Android的Studio和写字板,以及。当我在记事本+ +中打开它,它显示NULL字符。该文件具有如图它有表示该文件内容不丢失前的相同尺寸(希望)。

I hibernated my laptop when Android Studio was running and found later that the laptop had been shut down. Now one of my source files is appearing empty in Android Studio and in Wordpad as well. When I open it in Notepad++, it shows NUL character. The file has the same size as it had before which means that the file content is not lost (hopefully).

如何恢复这个文件的实际内容?我需要这个,因为我没有这个文件的备份。

How do I recover the actual content of this file? I need this as I didn't have a backup of this file.

推荐答案

看看Android的工作室保持一个版本的当地历史。

See if Android Studio kept a version in local history.

转至Android的Studio中的Java文件,并导航到

Go to your java file in Android Studio, and navigate to

VCS -> Local History -> See History

另外,开始使用版本控制,如git的。

Also, start using version control, like git.

这篇关于非正常关机后的And​​r​​oid工作室损坏.java文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆