Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Philip Harris
4,837 Pointserror: Error: String types not allowed (at 'baselineAligned' with value '_baseline').
Have this error popping up need some help and an explanation so i can understand what i did wrong here. it started when i watched the Animating the Crystal ball video.
20 <LinearLayout 21 android:layout_width="match_parent" 22 android:layout_height="wrap_content" 23 android:layout_alignParentLeft="true" 24 android:layout_centerVertical="true" 25 android:baselineAligned="_baseline" -----THIS line gets Error code----- 26 android:gravity="center_horizontal" 27 android:orientation="horizontal" 28 android:weightSum="1" >
2 Answers
Philip Harris
4,837 PointsSorry guys i got it had to set it to True
Justin Horner
Treehouse Guest TeacherHello Phillip,
Glad you found the issue! Generally these error messages related to errors in resource xml files so if you ever encounter an error like this again make sure to look over recent changes in those files.
Happy coding!
Philip Harris
4,837 PointsPhilip Harris
4,837 Points<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_centerVertical="true" android:baselineAligned="_baseline" android:gravity="center_horizontal" android:orientation="horizontal" android:weightSum="1" >