xml - android sdk main.out.xml 解析错误?

标签 xml parsing android avd

我刚刚开始了一个新的 Android 项目“WeekendStudy”来继续学习 Android 开发,但我很难编译默认的“helloweekstudy”编译/运行。我认为我错过了配置和设置的一步,但我不知道在哪里。我已经配置、设置和启动了 AVD。

当我按下“运行”时,SDK 正在构建文件 main.out.xml,然后失败如下:

[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

最佳答案

更好的修复: Eclipse -> 窗口 -> 首选项 -> 运行/调试 -> 启动 -> 启动配置

Cross :过滤检查的启动配置类型 和交叉也是:XSL(在列表的末尾)

关于xml - android sdk main.out.xml 解析错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2393103/

相关文章:

java - 通过 XML 解析器动态将 ZonedDateTime 字符串映射到 LocalDateTime

javascript - addParameter javascript(用于xslt)函数不起作用

android - 当回收器 View 项目根是 LinearLayout 时,为什么 match_parent 不起作用?

java - 使用 Simplexml 生成 java 类

java - 使用 jsoup 解析 HTML : differences between Android and Java

javascript - 在 JavaScript 中使用正则表达式匹配换行符

android - 如何使用数组适配器更改 ListView 项布局的背景颜色?

php - URL 解析到数据库

android - Android 可以做点对点的 ad-hoc 网络吗?

android - 单击 android 设备后退按钮时出现启动画面——使用 PhoneGap 创建