Testing my apps...problems...


Last Updated:

  1. ttaylor0024

    ttaylor0024 Well-Known Member This Topic's Starter

    Joined:
    Jan 2, 2010
    Messages:
    659
    Likes Received:
    188
    I'm new to programming, so I am trying to get my feet wet by finding what each little thing does. I modded my XML file to look like this:

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android: orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >
    <TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="@string/hello"
    />
    <Button
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:text="Button"
    android:linksClickable="true"
    />
    </LinearLayout>

    Now, granted I do not know how to link my button to stuff, if you could help me get started with programming that would be great. But now back to my problem, when I click "run" to see what it would look like, Eclipse makes a file in the "layout" folder by Main.xml. The file is named "main.out.xml". Then I get this for errors in the bottom...

    [2010-01-16 17:31:50 - Hello World]Error in an XML file: aborting build.
    [2010-01-16 17:31:51 - Hello World]res\layout\main.xml:0: ERROR Resource entry main is already defined.
    [2010-01-16 17:31:51 - Hello World]res\layout\main.out.xml:0: Originally defined here.
    [2010-01-16 17:31:51 - Hello World]C:\Users\Tosh Taylor\Android SDK\Workspace\Hello World\res\layout\main.out.xml:1: ERROR Error parsing XML: no element found

    Help would be great... (programming help too! :p)

    ( There is no space between android: Orientation in my codes, but it would put this in :eek: if I didnt put a space in this.)
     

    Advertisement
  2. KeithG

    KeithG Well-Known Member

    Joined:
    Nov 15, 2009
    Messages:
    103
    Likes Received:
    3

Share This Page

Loading...