我有這個問題一段時間,並能夠自己解決它。修復Android Studio損壞的項目工作區設置
如果打開Android Studio中的項目,類似這樣的錯誤消息的東西彈出:
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.
任何想法如何解決這個問題在Mac上? – 2015-03-26 11:26:50
只需添加,刪除workspce.xml後。殺死Android工作室並重新啓動它。否則,它會使用舊的workspace.xml – amalBit 2015-04-25 11:57:15
而不是刪除並重新創建文件,只是將文件內容留空(確保該文件具有utf8編碼,以便Android Studio可以讀取它)Android Studio將重新創建正確的xml內容文件。 – 2016-02-03 19:28:11