Are you working with the latest Android SDK with appcompat_v7 library and you have a project that has minSdkVersion below 11?, then you may get the following errors in your workspace.
Solution :
Make sure that your Manifest.xml file has the use-sdk with targetSdkVersion to the latest available,<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="20" />
Also make sure that project.properties file has target=android-20
Now just Clean + Build your project and hopefully there should be no errors!
What if i do not want to use appcompat_v7 ?
You have appcompat_v7 in your workspace because you have set the Target SDK version below 15, as Action Bar support was added in API level 11, so to support ActionBar to API levels below 11 appcompat_v7 libraries is added.
If you do not want appcompat_v7, simple work with API level 11 or above.
If you want to work on API levels below 11 see that you change,
public class MainActivity extends ActionBarActivity
to public class MainActivity extends Activity
✏️ Note : You also need to make sure that appropriate changes are made to style/theme elements in AndroidManifest.xml
Console Error Logs
/appcompat_v7/res/values-v14/styles_base.xml:24: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar'.
android:Widget.Holo.Light.ActionBar'.
android:Widget.Holo.ActionBar.Solid'.
android:Widget.Holo.Light.ActionBar.Solid'.
android:Widget.Holo.Light.ActionBar.Solid.Inverse'.
android:Widget.Holo.ActionButton'.
android:Widget.Holo.Light.ActionButton'.
android:Widget.Holo.ActionButton.CloseMode'.
android:Widget.Holo.Light.ActionButton.CloseMode'.
android:Widget.Holo.ActionButton.Overflow'.
android:Widget.Holo.Light.ActionButton.Overflow'.
android:Widget.Holo.ActionBar.TabBar'.
android:Widget.Holo.Light.ActionBar.TabBar'.
android:Widget.Holo.Light.ActionBar.TabBar.Inverse'.
android:Widget.Holo.ActionBar.TabView'.
android:Widget.Holo.Light.ActionBar.TabView'.
android:Widget.Holo.Light.ActionBar.TabView.Inverse'.
android:Widget.Holo.ActionBar.TabText'.
android:Widget.Holo.Light.ActionBar.TabText'.
android:Widget.Holo.Light.ActionBar.TabText.Inverse'.
android:Widget.Holo.Light.ActionMode.Inverse'.
android:TextAppearance.Holo.Widget.ActionMode.Title'.
android:TextAppearance.Holo.Widget.ActionMode.Subtitle'.
android:TextAppearance.Holo.Widget.ActionMode.Title.Inverse'.
android:TextAppearance.Holo.Widget.ActionMode.Subtitle.Inverse'.
android:TextAppearance.Holo.Widget.ActionBar.Menu'.
android:TextAppearance.Holo.Widget.ActionBar.Title'.
android:TextAppearance.Holo.Widget.ActionBar.Subtitle'.
android:TextAppearance.Holo.Widget.ActionBar.Title.Inverse'.
android:TextAppearance.Holo.Widget.ActionBar.Subtitle.Inverse'.
android:Widget.Holo.ProgressBar.Horizontal'.
android:Widget.Holo.ProgressBar'.
android:Widget.Holo.Spinner'.
android:Widget.Holo.Light.Spinner'.
android:Widget.Holo.DropDownItem.Spinner'.
android:Widget.Holo.Light.DropDownItem.Spinner'.
android:Widget.Holo.ListView.DropDown'.
android:Widget.Holo.ListView.DropDown'.
android:Widget.Holo.ListPopupWindow'.
android:Widget.Holo.Light.ListPopupWindow'.
android:Widget.Holo.PopupMenu'.
android:Widget.Holo.Light.PopupMenu'.
android:TextAppearance.Holo.Widget.PopupMenu.Large'.
android:TextAppearance.Holo.Widget.PopupMenu.Small'.
android:TextAppearance.Holo.Widget.PopupMenu.Large'.
android:TextAppearance.Holo.Widget.PopupMenu.Small'.
@android:TextAppearance.Holo.SearchResult.Title'.
@android:TextAppearance.Holo.SearchResult.Subtitle'.
@android:TextAppearance.Holo.SearchResult.Title'.
@android:TextAppearance.Holo.SearchResult.Subtitle'.
android:Widget.Holo.ActionBar'.
android:Widget.Holo.Light.ActionBar'.
android:Widget.Holo.ActionBar.Solid'.
android:Widget.Holo.Light.ActionBar.Solid'.
android:Widget.Holo.Light.ActionBar.Solid.Inverse'.
android:Widget.Holo.ActionButton'.
android:Widget.Holo.Light.ActionButton'.
android:Widget.Holo.ActionButton.CloseMode'.
android:Widget.Holo.Light.ActionButton.CloseMode'.
android:Widget.Holo.ActionButton.Overflow'.
android:Widget.Holo.Light.ActionButton.Overflow'.
android:Widget.Holo.ActionBar.TabBar'.
android:Widget.Holo.Light.ActionBar.TabBar'.
android:Widget.Holo.Light.ActionBar.TabBar.Inverse'.
android:Widget.Holo.ActionBar.TabView'.
android:Widget.Holo.Light.ActionBar.TabView'.
android:Widget.Holo.Light.ActionBar.TabView.Inverse'.
android:Widget.Holo.ActionBar.TabText'.
android:Widget.Holo.Light.ActionBar.TabText'.
android:Widget.Holo.Light.ActionBar.TabText.Inverse'.
android:Widget.Holo.Light.ActionMode.Inverse'.
android:TextAppearance.Holo.Widget.ActionMode.Title'.
android:TextAppearance.Holo.Widget.ActionMode.Subtitle'.
android:TextAppearance.Holo.Widget.ActionMode.Title.Inverse'.
android:TextAppearance.Holo.Widget.ActionMode.Subtitle.Inverse'.'android:TextAppearance.Holo.Widget.ActionBar.Menu'.
android:TextAppearance.Holo.Widget.ActionBar.Title'.
android:TextAppearance.Holo.Widget.ActionBar.Subtitle'.
android:TextAppearance.Holo.Widget.ActionBar.Title.Inverse'.
android:TextAppearance.Holo.Widget.ActionBar.Subtitle.Inverse'.
android:Widget.Holo.ProgressBar.Horizontal'.
android:Widget.Holo.ProgressBar'.
android:Widget.Holo.Spinner'.
android:Widget.Holo.Light.Spinner'.
android:Widget.Holo.DropDownItem.Spinner'.
android:Widget.Holo.Light.DropDownItem.Spinner'.
android:Widget.Holo.ListView.DropDown'.
android:Widget.Holo.ListView.DropDown'.
android:Widget.Holo.ListPopupWindow'.
android:Widget.Holo.Light.ListPopupWindow'.
android:Widget.Holo.PopupMenu'.
android:Widget.Holo.Light.PopupMenu'.
android:TextAppearance.Holo.Widget.PopupMenu.Large'.
android:TextAppearance.Holo.Widget.PopupMenu.Small'.
android:TextAppearance.Holo.Widget.PopupMenu.Large'.
android:TextAppearance.Holo.Widget.PopupMenu.Small'.
@android:TextAppearance.Holo.SearchResult.Title'.
@android:TextAppearance.Holo.SearchResult.Subtitle'.
@android:TextAppearance.Holo.SearchResult.Title'.
@android:TextAppearance.Holo.SearchResult.Subtitle'.
@android:Widget.Holo.AutoCompleteTextView'.
/appcompact_v7/res/values-v11/styles_base.xml:40: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.AutoCompleteTextView'.
/appcompact_v7/res/values-v14/styles_base.xml:225: error: Error: No resource found that matches the given name: attr 'android:dividerPadding'.
/appcompact_v7/res/values-v14/styles_base.xml:224: error: Error: No resource found that matches the given name: attr 'android:showDividers'.
/appcompact_v7/res/values-v11/themes_base.xml:31: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo'.
/appcompact_v7/res/values-v11/themes_base.xml:33: error: Error: No resource found that matches the given name: attr 'android:windowActionBar'.
/appcompact_v7/res/values-v11/themes_base.xml:40: error: Error: No resource found that matches the given name: attr 'android:windowActionModeOverlay'.
/appcompact_v7/res/values-v11/themes_base.xml:49: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'.
/appcompact_v7/res/values-v11/themes_base.xml:51: error: Error: No resource found that matches the given name: attr 'android:windowActionBar'.
/appcompact_v7/res/values-v11/themes_base.xml:58: error: Error: No resource found that matches the given name: attr 'android:windowActionModeOverlay'.
/appcompact_v7/res/values-v14/themes_base.xml:31: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo'.
/appcompact_v7/res/values-v14/themes_base.xml:41: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'.
/appcompact_v7/res/values-v14/themes_base.xml:57: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'.
/appcompact_v7/res/values-v14/themes_base.xml:67: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'.
/appcompact_v7/res/values-v14/themes_base.xml:83: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'.
/appcompact_v7/res/values-v14/themes_base.xml:94: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'.
/appcompact_v7/res/values-v11/themes_base.xml:66: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Dialog'.
/appcompact_v7/res/values-v11/themes_base.xml:79: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.Dialog'.
/appcompact_v7/res/values-v14/themes_base.xml:122: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.DialogWhenLarge'.
/appcompact_v7/res/values-v14/themes_base.xml:133: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'.
/appcompact_v7/res/values-v14/themes_base.xml:148: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DialogWhenLarge'.
/appcompact_v7/res/values-v14/themes_base.xml:159: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'.
- Android Error Unexpected cast to Button: layout tag was FrameLayout
- ADT quit unexpectedly error on Mac OSX Android Eclipse SDK
- Parsing Data for android-21 failed unsupported major.minor version 51.0
- Android Studio Ctrl Shift o auto import not working
- java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
- Android : How to make TextView Scrollable
- This class should be public (android.support.v7.internal.widget.ActionBarView.HomeView) Lint Error
- Integrating Android Facebook SDK 3.17.2 Tutorial
- Android R Cannot Be Resolved To A Variable
- Android : Exception raised during rendering: action_bar API 22
- How to take screenshot on Android
- Read Text file from SD Card : Android Programming
- How to make Android EditText not editable
- Your Android SDK is out of date or is missing templates. Please ensure you are using SDK version 22 or later.
- The declared package does not match the expected package Eclipse
- Can't Run SDK Manager find_java.bat issue
- What is Android Toast.LENGTH_SHORT and Toast. LENGTH_LONG durations
- Android Emulator Soft Back button action using Computer keyboard
- Multiline EditText in Android Example
- Use 5G Network on Android Emulator
- Make Android TextView Clickable like Buttons
- How to empty trash in Android Device
- Android : Execute some code after back button is pressed
- Disable Fading Edges Scroll Effect Android Views
- How To Disable Landscape Mode in Android Application
- How to Get the List of Shells on Linux - Linux
- Android Eclipse This version of the rendering library is more recent than your version of ADT plug-in. Please update ADT plug-in - Android
- Android : Remove ListView Separator/divider programmatically or using xml property - Android
- Java JDBC Select Multiple Records from table as List using PreparedStatement - Java
- How to know installed version of Homebrew - MacOS
- Installation error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED - Android
- Redirect page using jQuery - jQuery
- Copy entire directory using Terminal Command [Linux, Mac, Bash] - Linux