I am trying to follow the tutorial at This Link and I get the following errors
[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.
I have the following code in my 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>
Could anyone please tell me what is going wrong. I have spend a significant time trying to figure this issue out. Is there something wrong with the configuration ? When I click the run button a file called activity_main.out.xml gets created which is empty.
You are trying to run the xml file
activity_main. Change the focus to any java file or run it from package explorer by right clicking the project and run it. Before doing all this, delete youractivity_main.outfile.