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 : Execute some code after back button is pressed
- Android is starting optimizing... app 1 of 1
- How to change Android Button Color using xml attribute and programatically using java
- SQLite with Android Easy to Understand Tutorial that covers Select, Insert, Update and Delete
- How to make Android EditText not editable
- Make Android TextView Clickable like Buttons
- Unable to establish connection to adb : Android Studio Error
- Android Constant and Resource Type Mismatches Lint
- Android Shared Preferences API tutorial
- Fixing Android unknown error 961 while downloading app
- DDMS files not found hprof-conv.exe
- How to reset eclipse layout
- Android Developers Bluetooth Tutorial
- Android Studio Native typeface cannot be made error
- 21 Useful Android Emulator Short-cut Keyboard Keys
- Multiline EditText in Android Example
- How to screenshot on Android?
- JavaScript : redirect page to other url
- Unable to load VM from snapshot. The snapshot has been saved for a different hardware configuration
- How To Disable Landscape Mode in Android Application
- Change Title text for Android Activity using java code
- Android : Class file collision: A resource exists with a different case
- Android Emulator Soft Back button action using Computer keyboard
- Device not compatible error Android Google Play Store
- ERROR x86 emulation currently requires hardware acceleration. Intel HAXM is not installed on this machine
- java.lang.NoClassDefFoundError android.support.v4.content.LocalBroadcastManager
- Disable Fading Edges Scroll Effect Android Views
- Android : Unable to load VM from snapshot : Mac OS X Error
- Change Android EditText Cursor Height
- What is Android Toast.LENGTH_SHORT and Toast. LENGTH_LONG durations
- How to add border to Android TextView
- Remove ActionBar from Activity that extends appcompat-v7
- How to send SMS on Android Emulator
- Android RatingBar Example
- This Toast was not created with Toast.makeText() : Android RuntimeException
- Android Studio Ctrl Shift o auto import not working
- Android : Duplicate registration for activity com.example.abc
- ADT Installation Error: requires plug-in org.eclipse.wst.sse.ui
- Running Android Lint has encountered a problem NullPointerException Error
- Android Emulator] ##KBD: Full queue, lose event Error Logs
- Export aborted because fatal lint error were found
- Android Parsing Data for android-L failed Unsupported major.minor version 51.0 Error
- Android : Accidental Octal Lint Warning
- Android ListView turns Black or Flickers while Scrolling
- How to make a dummy phone call from Android Emulator device
- Create Custom Android AlertDialog - Android
- Copy Text to Android Clipboard Programmatically ClipboardManager - Android
- Facebook Down Will Be Back Soon - Facebook
- How to check installed Eclipse version 32-bit or 64-bit - Eclipse
- How to create an Autocomplete Android EditText Example - Android
- How to display Toast on Button Click : Android - Android
- Two Buttons next to each other in Android Layout - Android
- JSON Datatypes : Tutorial - Json-Tutorial
- Eclipse : Workspace was written with an older version of the product and will be updated - Eclipse
- JavaScript : redirect page to other url - Android
- Android Error Unexpected cast to Button: layout tag was FrameLayout - Android
- [Solved] SharePoint System.IO.FileNotFoundException was unhandled - SharePoint
- Fibonacci series from 1 to 500 table - Html
- The author stylesheet specified in tag script is too long - document contains 21759 bytes whereas the limit is 10000 bytes - Html
- Facebook Graph API Unavailable - Facebook