Geekzone: technology news, blogs, forums
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.

6 posts

Wannabe Geek

Topic # 60677 30-Apr-2010 09:36
Send private message


When I load a default setup android application with Eclipse Galileo ("Hello Android") and start it, it works (Literally I just open a new project, name it, and click run without any changes).

Now, if I open res/layout/main.xml -- even if I don't change ANYTHING, just view, when I run the program I get errors:

[2010-04-29 17:30:07 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched...
[2010-04-29 17:30:09 - HelloAndroid] emulator-5554 disconnected! Cancelling 'com.example.helloandroid.HelloAndroid activity launch'!
[2010-04-29 17:30:19 - HelloAndroid] Error in an XML file: aborting build.
[2010-04-29 17:30:19 - HelloAndroid] res\layout\main.xml:0: ERROR Resource entry main is already defined.
[2010-04-29 17:30:19 - HelloAndroid] res\layout\main.out.xml:0: Originally defined here.
[2010-04-29 17:30:19 - HelloAndroid] C:\Users\Xblade\workspace\HelloAndroid\res\layout\main.out.xml:1: ERROR Error parsing XML: no element found
[2010-04-29 17:30:43 - HelloAndroid] Error in an XML file: aborting build.

Being extremely new to Android programming, I'm completely lost -- I understand if I changed something, but not changing anything causes this error! How am I getting this error by running the program after I simply open this file?

Also, it creates a main.out.xml file that didn't exist previously that has nothing in it ("This document is empty").

Help =P Thanks!

Create new topic
5015 posts

Uber Geek
+1 received by user: 1001


  Reply # 325395 30-Apr-2010 18:29
Send private message

I followed the instructions to the letter and it worked for me. Try going through the process again, step by step. It looks like you have somehow got it looking at the e wrong XML file

I'm on a high fibre diet. 


High fibre diet

19 posts


  Reply # 325415 30-Apr-2010 19:25
Send private message

Try deleting main.out.xml, if it still exists? It might have been created during the build, but it shouldn't remain after compilation...


Try Wrike: fast, easy, and efficient project collaboration software

6 posts

Wannabe Geek

  Reply # 325485 1-May-2010 03:26
Send private message

That worked. I found out that when I click "run" looking at the xml page, it was trying to run the xml page instead of the java program. When I delete the created out.xml page and ran it looking at the java app, everything worke.d Thanks ;D

19 posts


  Reply # 325562 1-May-2010 13:22
Send private message

It can help to create a Run Configuration and just use that all the time rather than letting Eclipse try and build whatever you happen to be looking at. You can see your recently used configurations by clicking the dropdown next to the Run button.

Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:

Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:

Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:

News »

Opera launches new mobile browser: Opera Touch
Posted 25-Apr-2018 20:45

TCF and Telcos Toughen Up on Scam Callers
Posted 23-Apr-2018 09:39

Amazon launches the International Shopping Experience in the Amazon Shopping App
Posted 19-Apr-2018 08:38

Spark New Zealand and TVNZ to bring coverage of Rugby World Cup 2019
Posted 16-Apr-2018 06:55

How Google can seize Microsoft Office crown
Posted 14-Apr-2018 11:08

How back office transformation drives IRD efficiency
Posted 12-Apr-2018 21:15

iPod laws in a smartphone world: will we ever get copyright right?
Posted 12-Apr-2018 21:13

Lightbox service using big data and analytics to learn more about customers
Posted 9-Apr-2018 12:11

111 mobile caller location extended to iOS
Posted 6-Apr-2018 13:50

Huawei announces the HUAWEI P20 series
Posted 29-Mar-2018 11:41

Symantec Internet Security Threat Report shows increased endpoint technology risks
Posted 26-Mar-2018 18:29

Spark switches on long-range IoT network across New Zealand
Posted 26-Mar-2018 18:22

Stuff Pix enters streaming video market
Posted 21-Mar-2018 09:18

Windows no longer Microsoft’s main focus
Posted 13-Mar-2018 07:47

Why phone makers are obsessed with cameras
Posted 11-Mar-2018 12:25

Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.