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 trialJonthue Michel
1,462 PointsGod errors with an ID I did not touch.
Their is a red line on "android:id="@+id/" " I don't know where it came from.
<TextView android:text="Did You Know?" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/" android:textSize="24sp" />
2 Answers
Seth Kroger
56,413 PointsThe actual unique id is the part after the "@+id/" so your id is currently blank, which isn't allowed. You should put a unique id in there like "@+id/whatever_this_is" and the error should go away.
Jonthue Michel
1,462 PointsWould it be wise to just delete it?
adsdev
15,583 PointsEither deletion or using Seth Kroger's solution works. It's up to you which one you prefer :)