修正Android工作室损坏的项目工作区设置 [英] Fix Android Studio Corrupted Project Workspace Settings

查看:435
本文介绍了修正Android工作室损坏的项目工作区设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个问题了一会儿,能够解决它自己。

如果在Android的Studio和类似于此错误消息的东西打开您的项目弹出:

 无法从文件加载设置(C:\\用户\\用户\\ AndroidStudioProjects \\项目名\\ .idea \\ workspace.xml):第1行错误:内容是不允许的序言。请更正文件内容。


解决方案

这可能意味着你的项目工作区设置文件由任何原因和Android工作室无法读取它损坏。煤矿大概是因为BSOD的,因为Windows。

要解决这个错误,只是删除workspace.xml在错误消息中指定。它是确定要删除它,因为你可能已经失去了所有的自定义工作区设置当文件被损坏了,你将永远不能,除非你修复损坏的文件保存新的工作空间的设置。在删除后,下一次打开Android Studio中的项目,它会尝试寻找工作区文件,如果找不到的话,它只会创造一个新的有效的。

我希望这有助于! :)

I had this problem for a while and was able to solve it myself.

If in opening your project in Android Studio and something similar to this error message pops up:

Cannot load settings from file (C:\Users\User\AndroidStudioProjects\ProjectName\.idea\workspace.xml): Error on line 1: Content is not allowed in prolog. Please correct the file content.

解决方案

It probably means your project workspace settings file is corrupted by whatever reason and Android Studio could not read it. Mine is probably because of BSOD, because Windows.

To solve the error, just delete the workspace.xml as specified in the error message. It is ok to delete it since you probably already lost all your custom workspace settings when the file got corrupted and you will never be able to save new workspace settings unless you fix the corrupted file. After deleting it, the next time you open your project in Android Studio, it will try to look for the workspace file, and if it can't find it, it will just create a new valid one.

I hope this helps! :)

这篇关于修正Android工作室损坏的项目工作区设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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