启动Android程序时出错

Gab*_*lla 2 android compiler-errors

[2010-04-16 23:31:34 - MobileDataKeeper] Error in an XML file: aborting build.
[2010-04-16 23:31:57 - MobileDataKeeper] Error in an XML file: aborting build.
[2010-04-16 23:32:28 - MobileDataKeeper] Error in an XML file: aborting build.
[2010-04-16 23:34:56 - MobileDataKeeper] Error in an XML file: aborting build.
[2010-04-16 23:35:14 - MobileDataKeeper] res/layout/main.out.xml:0: error: Resource entry main is already defined.
[2010-04-16 23:35:14 - MobileDataKeeper] res/layout/main.out.out.xml:0: Originally defined here.
[2010-04-16 23:35:14 - MobileDataKeeper] res/layout/main.xml:0: error: Resource entry main is already defined.
[2010-04-16 23:35:14 - MobileDataKeeper] res/layout/main.out.out.xml:0: Originally defined here.
[2010-04-16 23:35:14 - MobileDataKeeper] /media/Mis Documentos/Dropbox/Eclipse/MobileDataKeeper/res/layout/main.out.out.xml:1: error: Error parsing XML: no element found
[2010-04-16 23:35:14 - MobileDataKeeper] /media/Mis Documentos/Dropbox/Eclipse/MobileDataKeeper/res/layout/main.out.xml:1: error: Error parsing XML: no element found
[2010-04-16 23:35:49 - MobileDataKeeper] Error in an XML file: aborting build.

Main.xml.out.*为空.MobileDataKeeper.java是默认的,Mainx.xml输出是:

<?xml version="1.0" encoding="utf-8"?>

<RelativeLayout
    android:id="@+id/RelativeLayout01"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    xmlns:android="http://schemas.android.com/apk/res/android" />
Run Code Online (Sandbox Code Playgroud)

每当我在Main.xml中更改某些内容时都会遇到此问题.这非常令人沮丧,我不知道到底发生了什么.训练有素的眼睛需要!

谢谢!

Com*_*are 13

删除main.xml.out项目中的所有文件.然后,不要尝试使用XML文件作为Eclipse中编辑器中的活动选项卡运行项目 - 切换到Java文件.尝试使用XML文件作为活动选项卡运行项目,该选项卡创建这些.out文件并混淆系统.

可能有一个更复杂的解决方法,但我不是Eclipse用户,所以我不知道它是什么.

  • 最有用的答案.Eclipse中的一个可怕的错误 - 我以为我是愚蠢或盲目寻找不存在的坏xml! (2认同)