Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot load settings .idea/workspace.xml

I am receiving the following error in my android studio project.

Cannot load settings from file
'C:\Users\user\AndroidStudioProjects....idea\workspace.xml': Error on line 3167: XML document structures must start and end within the same entity

I have looked at the line and nothing seems out of the ordinary

    <state vertical-scroll-proportion="0.8210526">
      <caret line="85" column="14" selection-start-line="85" selection-start-column="14" selection-end-line="86" selection-end-column="8" />
      <folding>
        <element signature="imports" expanded="true" />
        <element signature="e#2694#3007#0" expanded="true" />
      </folding>
    </state>
like image 403
the_big_blackbox Avatar asked Jul 06 '16 12:07

the_big_blackbox


2 Answers

In project/.idea you have broken workspace.xml file. you have to close Android Studio (Intellij IDEA), remove this file and start Android Studio. It will work..

like image 103
Harshad Pansuriya Avatar answered Oct 20 '22 23:10

Harshad Pansuriya


This problem sometime may happen when a current user doesn't have enough permission to access ./idea/workspace.xml file.

SOLUTION:

Go to your project root directory and run this command sudo chown -R $USER:$USER .idea/

like image 2
eli Avatar answered Oct 21 '22 01:10

eli