[Fixed] Disgusting bug Error:Failed to Load project configuration: cannot parse filemessage: content is not allowed in the preface.

Error details:

Error:Failed to load project configuration: cannot parse file D:\Work\demo\.idea\libraries\Maven___com_test.e_caseapi_1_0_SNAPSHOT.xml: ParseError at [row,col]:[1,1]
Message: No content is allowed in the preface.

I copied a project and reopened a new workspace and threw this exception when I started. The analysis of this exception was caused by the fact that every workspace you imported IDEA generated a.idea file, because your current path did not match the workspace.
Solutions:
Find idea workspace. XML file, delete it, close idea

find your project workspace file, delete. Idea folder, then reopen idea and re-import the project into idea.

Read More: