Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

New Forums: Nexus Player | Nexus 9
test: Reply
 
LinkBack Thread Tools
Old May 19th, 2010, 01:31 PM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: May 2010
Posts: 7
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Main.out.xml message

Hello
I installed Eclipse and Android ADT. When I create android project and try to run, I get following on main.out.xml file:


"This document is empty.
Right click here to insert content"

However, main.xml file has xml data for layout.

Please help, what I need to do after right clicking. Thanks

Advertisements
husainsn is offline  
Reply With Quote
sponsored links
Old May 19th, 2010, 02:20 PM   #2 (permalink)
Member
 
powell's Avatar
 
Join Date: Aug 2009
Location: PL
Posts: 204
 
Device(s): HTC Magic, HTC Desire, HTC Sensation, Samsung Galaxy S, Samsung Galaxy Tab 7''
Carrier: Not Provided

Thanks: 22
Thanked 117 Times in 60 Posts
Default

If you try to run your project with *.xml file opened AND active in the editor (xml file must be shown in the active tab of the editor), Eclipse makes the *.out.xml file and your project does not run anymore.
Try to delete the *.out.xml file and run the project again. This time close main.xml first, or at least display *.java file in front of it.
__________________
Regards,
powell

( See my Gemini Calendar in Google Play, watch YouTube )
powell is offline  
Reply With Quote
The Following 2 Users Say Thank You to powell For This Useful Post:
Atarpan (January 16th, 2012), xvladus1 (October 1st, 2010)
Old October 1st, 2010, 02:30 PM   #3 (permalink)
New Member
 
Join Date: Oct 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by powell View Post
If you try to run your project with *.xml file opened AND active in the editor (xml file must be shown in the active tab of the editor), Eclipse makes the *.out.xml file and your project does not run anymore.
Try to delete the *.out.xml file and run the project again. This time close main.xml first, or at least display *.java file in front of it.
Thank you! I've wasted 3 hrs on this, and might I say this bug doesn't make much sense at all OR the most obvious one =)
xvladus1 is offline  
Reply With Quote
Old January 16th, 2012, 09:15 PM   #4 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thank You .....
Atarpan is offline  
Reply With Quote
Old January 21st, 2012, 05:35 AM   #5 (permalink)
Junior Member
 
jonathanrz's Avatar
 
Join Date: Jan 2012
Location: Brazil - Blumenau, SC
Posts: 75
 
Device(s): Motorola Defy - Gingerbread(2.3.5)
Carrier: Not Provided

Thanks: 14
Thanked 6 Times in 5 Posts
Send a message via MSN to jonathanrz jonathanrafaelz
Default

I believe eclipse work this way for others languages, when you want to compile just one file.

But I lost a lot of time with this bug too, sometimes is necessary to do a clean or refresh in the project too.
jonathanrz is offline  
Reply With Quote
Old January 23rd, 2012, 10:27 AM   #6 (permalink)
New Member
 
Join Date: Jan 2012
Location: Belfast, Northern Ireland
Posts: 11
 
Device(s): Samsung Galaxy SII
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

In eclipse, go to Window > Preferences > Run/Debug > Launching. Select "Always launch the previously launched application".

Now you can hit the run button even if you have focus of a .xml file.
odhran is offline  
Last edited by odhran; January 23rd, 2012 at 10:30 AM.
Reply With Quote
Old January 23rd, 2012, 12:24 PM   #7 (permalink)
Junior Member
 
jonathanrz's Avatar
 
Join Date: Jan 2012
Location: Brazil - Blumenau, SC
Posts: 75
 
Device(s): Motorola Defy - Gingerbread(2.3.5)
Carrier: Not Provided

Thanks: 14
Thanked 6 Times in 5 Posts
Send a message via MSN to jonathanrz jonathanrafaelz
Question

Quote:
Originally Posted by odhran View Post
In eclipse, go to Window > Preferences > Run/Debug > Launching. Select "Always launch the previously launched application".

Now you can hit the run button even if you have focus of a .xml file.
Eclipse will compile always the apliccation? Or if I edit a .java for exemple, Eclipse won't run the aplication before my edit?
jonathanrz is offline  
Reply With Quote
Old January 23rd, 2012, 03:17 PM   #8 (permalink)
Member
 
Join Date: Oct 2011
Location: Sydney, Australia
Posts: 191
 
Device(s): Galaxy Nexus GSM
Carrier: Not Provided

Thanks: 2
Thanked 37 Times in 33 Posts
Default

Quote:
Originally Posted by jonathanrz View Post
Eclipse will compile always the apliccation? Or if I edit a .java for exemple, Eclipse won't run the aplication before my edit?
This setting odhran pointed out is about selecting a run configuration. It tells Eclipse to not try to launch the file your editing and to possibly create run configuration in the process, but to always just run the last run configuration that you explicitly chose from the run menu.

This isn't that commonly found setting in IDEs that tells the IDE to launch the previously successful build in case of current build errors. That's "continue launch if project contains errors".


While you're in the Launching preferences, change "Save required dirty editors before launching" to always and check "Wait for ongoing build to complete before launching" is also set to always.
jiminaus is offline  
Last edited by jiminaus; January 23rd, 2012 at 03:20 PM.
Reply With Quote
The Following User Says Thank You to jiminaus For This Useful Post:
jonathanrz (January 23rd, 2012)
Old January 23rd, 2012, 04:45 PM   #9 (permalink)
Junior Member
 
jonathanrz's Avatar
 
Join Date: Jan 2012
Location: Brazil - Blumenau, SC
Posts: 75
 
Device(s): Motorola Defy - Gingerbread(2.3.5)
Carrier: Not Provided

Thanks: 14
Thanked 6 Times in 5 Posts
Send a message via MSN to jonathanrz jonathanrafaelz
Default

Thanks, is boring always have to remember to unselect xml files, this will help me a lot
jonathanrz is offline  
Reply With Quote
Old January 25th, 2012, 10:47 PM   #10 (permalink)
New Member
 
Join Date: Jan 2012
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Same thing happened to me. So :
1. Do not run an .xml file.
2. Delete the main.out.xml
3. Project > clean > select the project that occur this error
4. Done
KenDiriwan is offline  
Reply With Quote
sponsored links
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:03 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.