在 Android Studio 中恢复文件? [英] Recover file in Android Studio?

查看:39
本文介绍了在 Android Studio 中恢复文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Android Studio(版本 1.2)中创建了一个项目,在该项目上工作了几个星期后,我的电脑突然关闭(当时 Android Studio 是打开的).

I created a project in Android Studio (Version 1.2) and after working on that project for a few weeks, my PC suddenly shut down (Android Studio was open at that time).

再次启动电脑后,我发现我的一个文件被完全删除了.

After starting the PC again, I found that one of my files was completely erased.

这是工作区的快照 -

如您所见,该文件中没有任何内容.

As you can see, nothing is left on that file.

有没有办法恢复那个文件?我使用的是 Ubuntu 14.04.

Is there any way to recover that file? I am using Ubuntu 14.04.

推荐答案

你能在文件资源管理器中找到文件吗?

如果可以,请尝试通过其他资源管理器打开文件

If you can, try to open the file through another explorer

您可以通过右键单击项目并点击文件路径"来找到您的项目路径

You can find your projects path by right clicking the project and hitting "File Path"

有本地历史记录吗?

尝试右键单击有问题的文件并检查本地历史 -> 显示历史

Try right clicking the faulty file and checking Local History -> Show History

如果您可以获取本地历史记录,请右键单击历史记录条目并单击还原

If you can fetch the local history, right click the history entry and click revert

这篇关于在 Android Studio 中恢复文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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