Eclipse Content is not allowed in prolog

前端 未结 14 1935
抹茶落季
抹茶落季 2021-01-07 22:32

I\'m having trouble opening my main in my eclipse project. It keeps coming up with:

\"content is not allowed in prolog\"

I haven\'t altered my code or anythi

14条回答
  •  轮回少年
    2021-01-07 23:16

    I had the same error and figured it out.

    When I tried to create a new string resource, I tried to paste the new resource value on the "Android Resources" screen. To my surprise, the paste operation (using CTRL + V) does not work on that screen, and I tried it several times.

    After that I started getting the error. When I switched from the "Android Resources" screen to the raw XML screen of the Strings.xml file, I noticed that all the text that I tried to paste was at the beginning of the file, like this:

    Image content description. Image content description.
    
        My App
    
    

    And that was causing the error for me.

提交回复
热议问题