Android Forums

Go Back   These FORUMS ARE DISABLED!! OUR NEW FORUMS ARE AT http://androidforum.com/ > Android Coders > Android Development, Answers, Tutorials, and Code Snippets
Connect with Facebook

Click Here To Register!
 
 
LinkBack Thread Tools Display Modes
Old 08-17-2009, 12:29 PM   #1
Junior Member
 
Join Date: Aug 2009
Posts: 1
Friends: 0
View chipolata's Profile   View chipolata's Photo Album   View chipolata's Blog   View Social Groups
Hello, I am brand new to this Android Development community and development. I have installed the emulator and sdk and I'm now practicing with some basic tutorials I found here: http://developer.android.com/guide/t...earlayout.html.

I am currently working on the Linear Layout option which for some reason I am unable to run. I have been digging in forums for the past couple of hours but there does not appear to be a clear answer to the problem.

Every time I try to run the application I get the following error:

The Application Hello, LinearLayout (process com.etc...) has stopped unexpectedly. Please try again.

When I build the application, there are no errors but when I open up the LogCat window I get Binary XML file line #48: You must supply a layout_width attribute.

First of all there on line 48 ther code in the XML file is:

android:orientation="vertical"

Secondly on line 49 I have:

android:layout_width="fill_parent"

Just as instructed by the tutorial.

Why does it fail?

Thanks!
chipolata is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Old 11-01-2009, 08:08 PM   #2
Junior Member
 
Join Date: Sep 2009
Posts: 1
Friends: 0
View rvaul's Profile   View rvaul's Photo Album   View rvaul's Blog   View Social Groups
All I can say is check the tutorial again. Following the same tutorial I get no problems, and it runs just fine.

(All I did was copy and paste it, so what "they" have is exactly right).
rvaul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
 

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial on Signing your apk for publishing! Destroythenseek Android Market/Reviews 9 12-01-2011 08:00 AM
Error inflating xml layout file pierpa Android Development, Answers, Tutorials, and Code Snippets 3 07-31-2010 11:36 PM
How to set the layout from java code? liviu1988 Android Development, Answers, Tutorials, and Code Snippets 0 03-26-2009 06:28 AM
Android Images Tutorial dr0ne Android Development, Answers, Tutorials, and Code Snippets 1 12-08-2008 10:15 PM


Unlocked G1 Phones | Buy T-Mobile G1 | Google Phone

All times are GMT -6. The time now is 04:31 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright (c) 2012 TalkAndroid.com. All rights reserved.