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

#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
5609 posts

Uber Geek


  #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

If you order a Tesla, click my referral code below to order your car and get free stuff. 


My Tesla referral code:

19 posts


  #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...


6 posts

Wannabe Geek

  #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


  #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

News »

Freeview On Demand app launches on Sony Android TVs
Posted 6-Aug-2020 13:35

UFB hits more than one million connections
Posted 6-Aug-2020 09:42

D-Link A/NZ extends COVR Wi-Fi EasyMesh System series with new three-pack
Posted 4-Aug-2020 15:01

New Zealand software Rfider tracks coffee from Colombia all the way to New Zealand businesses
Posted 3-Aug-2020 10:35

Logitech G launches Pro X Wireless gaming headset
Posted 3-Aug-2020 10:21

Sony Alpha 7S III provides supreme imaging performance
Posted 3-Aug-2020 10:11

Sony introduces first CFexpress Type A memory card
Posted 3-Aug-2020 10:05

Marsello acquires Goody consolidating online and in-store marketing position
Posted 30-Jul-2020 16:26

Fonterra first major customer for Microsoft's New Zealand datacentre
Posted 30-Jul-2020 08:07

Everything we learnt at the IBM Cloud Forum 2020
Posted 29-Jul-2020 14:45

Dropbox launches native HelloSign workflow and data residency in Australia
Posted 29-Jul-2020 12:48

Spark launches 5G in Palmerston North
Posted 29-Jul-2020 09:50

Lenovo brings speed and smarter features to new 5G mobile gaming phone
Posted 28-Jul-2020 22:00

Withings raises $60 million to enable bridge between patients and healthcare
Posted 28-Jul-2020 21:51

QNAP integrates Catalyst Cloud Object Storage into Hybrid Backup solution
Posted 28-Jul-2020 21:40

Geekzone Live »

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

Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron

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.