android sdk main.out.xml parsing error?

后端 未结 17 2027
别跟我提以往
别跟我提以往 2020-12-02 09:31

I just started a new Android project, \"WeekendStudy\" to continue learning Android development and I got stumped compiling the default \'hello weekendstudy\' compile / run.

相关标签:
17条回答
  • 2020-12-02 10:34

    This appears to be an issue with one of eclipse's XML plugins, I think it is something in Web Tools. I used to be able to run the app from any file, be it XML or java, but once I installed Web Tools I started seeing this error. It really is annoying, I am so used to pressing Ctrl-F11 to build the app...but if you do that in an XML file you get this error. The fix mentioned above does work, but it is extra steps and less efficient to have to right-click the project and select Run As... blah blah. If anyone figures out a clean solution - besides removing Web Tools of course - to get me back my shortcut key I would be grateful.

    0 讨论(0)
  • 2020-12-02 10:35

    I had the same problem as wall , my solution was :

    Just import it again without creating new project

    first try do do that:

    Eclipse ->Project->Clean...->Choose your project->OK

    If that didn't work, try this..

    1.copy the project folder from workspace to some where else (desktop will be fine) 2.delete project from eclipse (checked the box "delete Project content from disc" ) 3.copy the project again just this time from desktop to workspace 3.import the project again (File>>Import>>General>> Existing project into workspace ) 4.that's worked for me ..

    hope it helped

    0 讨论(0)
  • 2020-12-02 10:36

    Do try, and check the valid source is running or not.

    Deleted the xxx.out.xml, if still can't run, please follow this Eclipse ->Project->Clean...->Choose your project->OK

    0 讨论(0)
  • 2020-12-02 10:37

    I had the same problem and tried alot of different things. Finally I gave up, copied the entire project tree to another location. Created a new Android project and copied the src files, res.layout, res.values files and my added custom images under drawable. Right clicked the project in package explorer and hit "Refresh". Now it works again. Probably not the best way to fix it but it works :-)

    0 讨论(0)
  • 2020-12-02 10:37

    Here is a blog post that I just found which solves the problem definitely!

    0 讨论(0)
提交回复
热议问题