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

Android Build a Blog Reader Android App Rebuilding from Scratch Creating the Project and ListActivity

PROBLEM APPCOMPAT AND PREVIEW ALL SCREENS

I have issues, because when i delete fragment, appcompat appers and x (error) and when i go to preview all screens, it appears me an error, and i cant see any preview screen.

5 Answers

i saw those errors watching api 19, but with api 16 i can see all the screens. thank you

Louis Sankey
Louis Sankey
22,595 Points

yes, I had this problem for a while too. The error is probably in your styles.xml. The way to fix this is to go to project/properties/android then you should see the appcompat in the library, click add and then apply and then okay. Let me know if this helps.

Louis Sankey
Louis Sankey
22,595 Points

actually, I may have misunderstood your question. Let me try again... in a sec.

Louis Sankey
Louis Sankey
22,595 Points

my eclipse is being slow so I cannot look to see exactly how to help you. I believe you need to move one block of code from fragment.xml to the ActivityMain.xml. Then you need to delete two blocks of code in the main activity. These are the blocks of code with the underlined error. One is an If block and the other is the last block on the page. I am sorry I cannot be more helpful at this time but now my eclipse is not working properly. I believe the first video in the "build an app reader" project explains how to do this.

my problem is when i put preview all screens it opens an error and says internal error, render preview and i cant see any screen