AdamHorton
Lurker
I'm trying to get a simple Hello World app to build and hopefully get it to show up on my phone. I've been following the tutorials and I've managed to get Eclipse set up with the Android plug-in. I'll outline the steps I'm taking and maybe someone could tell me what I'm doing wrong? I'll be happy to provide more details if needed.
I'm using Windows 7 x64 for this, and my phone is a Samsung Stratosphere in case that matters.
I start up Eclipse and click on the New Android Project button.
I enter in some names and keep the rest of the defaults:
Build SDK is Android 4.1.2 (API 16)
Minimum Required DSK is API 8: Android 2.2 (Froyo)
I keep the BlankActivity selected and make no changes to the defaults there.
I see the default screen where it shows my project name and it says "Hello world!" in the middle.
Now, the tutorials say I should be able to press the press the "Play" button to build the project and this is where I see the error:
In the Console:
"[2012-10-28 15:00:12 - asdfasdf] Error in an XML file: aborting build."
I look in Markers and it says "Android XML Format Problem" and then "Premature end of file." for activity_main.out.xml -- I've tried putting a few things in here but I'm definitely not far enough along to be able to understand what this means or how it fits with everything else. I thought this was supposed to be ready to build and run with just a "Hello world!" screen, since that's how the tutorials want to teach this to me, but it appears not.
How do I get this project to build, and/or is there a more accepted tutorial around here that won't run into this problem? This is my first post so I'm not allowed to put in a link, but the tutorial I'm using is from developer dot android dot com.
Thanks for any help.
I'm using Windows 7 x64 for this, and my phone is a Samsung Stratosphere in case that matters.
I start up Eclipse and click on the New Android Project button.
I enter in some names and keep the rest of the defaults:
Build SDK is Android 4.1.2 (API 16)
Minimum Required DSK is API 8: Android 2.2 (Froyo)
I keep the BlankActivity selected and make no changes to the defaults there.
I see the default screen where it shows my project name and it says "Hello world!" in the middle.
Now, the tutorials say I should be able to press the press the "Play" button to build the project and this is where I see the error:
In the Console:
"[2012-10-28 15:00:12 - asdfasdf] Error in an XML file: aborting build."
I look in Markers and it says "Android XML Format Problem" and then "Premature end of file." for activity_main.out.xml -- I've tried putting a few things in here but I'm definitely not far enough along to be able to understand what this means or how it fits with everything else. I thought this was supposed to be ready to build and run with just a "Hello world!" screen, since that's how the tutorials want to teach this to me, but it appears not.
How do I get this project to build, and/or is there a more accepted tutorial around here that won't run into this problem? This is my first post so I'm not allowed to put in a link, but the tutorial I'm using is from developer dot android dot com.
Thanks for any help.