错误启动的Andr​​oid程序 [英] Error starting an Android program

查看:191
本文介绍了错误启动的Andr​​oid程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


[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的是:

Main.xml.out.* are empty. The MobileDataKeeper.java is default and the Mainx.xml out is:

<?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" />

每当我改变的东西,在main.xml中搞定这个问题。这是非常令人沮丧,我不知道到底是怎么回事。一个训练有素的眼睛是该电源线!

Every time i change something in the Main.xml get this problem. It's very frustrating and I don't know what the heck is going on. A trained eye is requiered!

谢谢!

推荐答案

删除所有 main.xml.out 文件在您的项目。然后,执行不会尝试用一个XML文件在编辑器Eclipse中的活动选项卡运行项目 - 切换到Java文件。它是用一个XML文件,创建这些 .OUT 文件,并打乱了系统中的活动选项卡运行该项目的尝试。

Delete all main.xml.out files in your project. Then, do NOT attempt to run the project with an XML file as the active tab in the editor in Eclipse -- switch to a Java file. It is the attempt to run the project with an XML file as the active tab that creates those .out files and messes up the system.

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

There's probably a more sophisticated workaround, but I am not an Eclipse user, so I do not know what it is.

这篇关于错误启动的Andr​​oid程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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