gpt4 book ai didi

android - 不小心删除了android studio中的Main Activity.java,如何找回它..?

转载 作者:行者123 更新时间:2023-11-29 14:36:23 28 4
gpt4 key购买 nike

请告诉我如何取回 MainActivity.java 或任何其他添加它的方法,仅 MainActivity.java 丢失 activity_main.xml 存在。

最佳答案

您可以尝试通过以下方式取回您从 Android Studio/IntelliJ 中删除的文件:

  1. On the context menu, choose Local History, and click Show History on the submenu

  2. The local history view for a project or folder shows you everything that you have done during the last few days. In the Action column of the lower part of the dialog box, select the action you want to roll back. In our case, this is the Deleting action. So doing, the upper part of the dialog box shows the tree view of changed files.

参见 Using Local History to restore deleted files .

关于android - 不小心删除了android studio中的Main Activity.java,如何找回它..?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35956824/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com