Android SDK中main.out.xml解析错误? [英] android sdk main.out.xml parsing error?

查看:159
本文介绍了Android SDK中main.out.xml解析错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始一个新的Andr​​oid项目,WeekendStudy继续学习Android开发,我得到难倒编译默认的'你好weekendstudy编译/运行。我想,我错过了在配置和设置的一个步骤,但我很茫然,找出。我有配置,设置和启动了AVD。

当我preSS'跑',该SDK是建立一个文件main.out.xml,然后失败,因为这样的:

  [2010-03-06 9时46分47秒 -  WeekendStudy]在一个XML文件时出现错误:中止建设。
[2010-03-06九时46分48秒 -  WeekendStudy] RES /布局/ main.xml中:0:错误:资源进入主已定义。
[2010-03-06九时46分48秒 -  WeekendStudy] RES /布局/ main.out.xml:0:原来这里定义。
[2010-03-06九时46分48秒 -  WeekendStudy] /Users/mobibob/Projects/workspace-weekend/WeekendStudy/res/layout/main.out.xml:1:错误:错误解析XML:没有元素发现
[2010-03-06 9点48分16秒 -  WeekendStudy]在一个XML文件时出现错误:中止建设。
[2010-03-06 9点48分16秒 -  WeekendStudy] RES /布局/ main.xml中:0:错误:资源进入主已定义。
[2010-03-06 9点48分16秒 -  WeekendStudy] RES /布局/ main.out.xml:0:原来这里定义。
[2010-03-06 9点48分16秒 -  WeekendStudy] /Users/mobibob/Projects/workspace-weekend/WeekendStudy/res/layout/main.out.xml:1:错误:错误解析XML:没有元素发现
[2010-03-06 9时55分29秒 -  WeekendStudy] RES /布局/ main.xml中:0:错误:资源进入主已定义。
[2010-03-06 9时55分29秒 -  WeekendStudy] RES /布局/ main.out.xml:0:原来这里定义。
[2010-03-06 9时55分29秒 -  WeekendStudy] /Users/mobibob/Projects/workspace-weekend/WeekendStudy/res/layout/main.out.xml:1:错误:错误解析XML:没有元素发现
[2010-03-06 9点55分49秒 -  WeekendStudy]在一个XML文件时出现错误:中止建设。
[2010-03-06 9点55分49秒 -  WeekendStudy] RES /布局/ main.xml中:0:错误:资源进入主已定义。
[2010-03-06 9点55分49秒 -  WeekendStudy] RES /布局/ main.out.xml:0:原来这里定义。
[2010-03-06 9点55分49秒 -  WeekendStudy] /Users/mobibob/Projects/workspace-weekend/WeekendStudy/res/layout/main.out.xml:1:错误:错误解析XML:没有元素发现
 

解决方案

更​​好的固定: 日食 - >窗口 - > preferences - >运行/调试 - >启动 - >劳克配置

交叉:过滤器检查启动配置类型 与跨也:XSL(可在列表的末尾)

使问题永远消失!

I just started a new Android project, "WeekendStudy" to continue learning Android development and I got stumped compiling the default 'hello weekendstudy' compile / run. I think that I missed a step in configuration and setup, but I am at a loss to find out where. I have an AVD configured, set and launched.

When I press 'run', the SDK is building a file main.out.xml and then fails as this:

[2010-03-06 09:46:47 - WeekendStudy]Error in an XML file: aborting build.
[2010-03-06 09:46:48 - WeekendStudy]res/layout/main.xml:0: error: Resource entry main is already defined.
[2010-03-06 09:46:48 - WeekendStudy]res/layout/main.out.xml:0: Originally defined here.
[2010-03-06 09:46:48 - WeekendStudy]/Users/mobibob/Projects/workspace-weekend/WeekendStudy/res/layout/main.out.xml:1: error: Error parsing XML: no element found
[2010-03-06 09:48:16 - WeekendStudy]Error in an XML file: aborting build.
[2010-03-06 09:48:16 - WeekendStudy]res/layout/main.xml:0: error: Resource entry main is already defined.
[2010-03-06 09:48:16 - WeekendStudy]res/layout/main.out.xml:0: Originally defined here.
[2010-03-06 09:48:16 - WeekendStudy]/Users/mobibob/Projects/workspace-weekend/WeekendStudy/res/layout/main.out.xml:1: error: Error parsing XML: no element found
[2010-03-06 09:55:29 - WeekendStudy]res/layout/main.xml:0: error: Resource entry main is already defined.
[2010-03-06 09:55:29 - WeekendStudy]res/layout/main.out.xml:0: Originally defined here.
[2010-03-06 09:55:29 - WeekendStudy]/Users/mobibob/Projects/workspace-weekend/WeekendStudy/res/layout/main.out.xml:1: error: Error parsing XML: no element found
[2010-03-06 09:55:49 - WeekendStudy]Error in an XML file: aborting build.
[2010-03-06 09:55:49 - WeekendStudy]res/layout/main.xml:0: error: Resource entry main is already defined.
[2010-03-06 09:55:49 - WeekendStudy]res/layout/main.out.xml:0: Originally defined here.
[2010-03-06 09:55:49 - WeekendStudy]/Users/mobibob/Projects/workspace-weekend/WeekendStudy/res/layout/main.out.xml:1: error: Error parsing XML: no element found

解决方案

Better fixing: Eclipse -> Window -> Preferences -> Run/Debug -> Launching -> Lauch Configuration

Cross : Filter checked launch configuration types and Cross also : XSL (at the end of the list)

Make the problem go away Forever !

这篇关于Android SDK中main.out.xml解析错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆