Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Android Build a Simple Android App (retired 2014) Getting Started with Android Android Setup and the Crystal Ball Project

Error in Eclipse: appcompat_v7

First time into Eclipse. Going through the Crystalball app. Even before I create a new app Crystalball, I get three errors in appcompat_v7.

  1. Attribute is missing the Android namespace prefix in abc_search_dropdown_dark.xml at the following line: <stroke android:width="2dp" color="#A00080FF"/>
  2. Same error but in abc_search-dropdown_light.xml at:<stroke android:width="1dp" color="#A00080FF"/>
  3. Wrong orientation? No orientation specified, and the ... in the abc_action_bar file at <LinearLayout android:id="@+id/top_action_bar"

I did not change any of these files, but Eclipse started this way. Any help would be appreciated. -tkc

1 Answer

Appcompat is for compatibility for android devices that don't support higher level features.

At a best guess the required api level chosen for your project doesn't support the abc_search-dropdown_light.xml and abc_search_dropdown_dark.xml

Change the lowest level api the app requires to run and it might fix this because it won't need the Appcompat files.