我正在尝试按照此链接上的教程进行操作,但出现以下错误
[2012-10-03 22:02:16 - MyFirstApp] res\layout\activity_main.xml:0: error: Resource entry activity_main is already defined.
[2012-10-03 22:02:16 - MyFirstApp] res\layout\activity_main.out.xml:0: Originally defined here.
[2012-10-03 22:02:16 - MyFirstApp] D:\Users\Adam\workspace\MyFirstApp\res\layout\activity_main.out.xml:1: error: Error parsing XML: no element found
[2012-10-03 22:03:23 - MyFirstApp] Error in an XML file: aborting build.
[2012-10-03 22:04:47 - MyFirstApp] res\layout\activity_main.xml:0: error: Resource entry activity_main is already defined.
[2012-10-03 22:04:47 - MyFirstApp] res\layout\activity_main.out.xml:0: Originally defined here.
[2012-10-03 22:04:47 - MyFirstApp] D:\Users\Adam\workspace\MyFirstApp\res\layout\activity_main.out.xml:1: error: Error parsing XML: no element found
[2012-10-03 22:04:53 - SDK Manager] Warning: Ignoring library 'com.motorola.android.iextdispservice', missing property value
[2012-10-03 22:04:57 - SDK Manager] Warning: Ignoring library 'com.motorola.android.iextdispservice', missing property value
[2012-10-03 22:05:27 - MyFirstApp] Error in an XML file: aborting build.
我的 activity_main.xml 中有以下代码
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<EditText android:id="@+id/edit_message"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:hint="@string/edit_message" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_send" />
</LinearLayout>
谁能告诉我出了什么问题。我花了很多时间试图解决这个问题。配置有问题吗?当我单击运行按钮时,会创建一个名为 activity_main.out.xml 的文件,该文件为空。