error changing api level android version from 8 to 12

I'm having problem changing minSdkVersion of an android application in eclipse, i want to change from 8 to 12 and every time it doesn't work, that are the first errors:

[2014-11-27 22:15:07 - BlaBlaPark1.3] C:\Users\Filippo\Desktop\EclipseAndroid2.0\programmi\appcompat_v7\res\values-v21\styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'. [2014-11-27 22:15:07 - BlaBlaPark1.3] [2014-11-27 22:15:07 - BlaBlaPark1.3] C:\Users\Filippo\Desktop\EclipseAndroid2.0\programmi\appcompat_v7\res\values-v21\styles_base.xml:79: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'. [2014-11-27 22:15:07 - BlaBlaPark1.3] [2014-11-27 22:15:07 - BlaBlaPark1.3] C:\Users\Filippo\Desktop\EclipseAndroid2.0\programmi\appcompat_v7\res\values-v21\styles_base.xml:83: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'. [2014-11-27 22:15:07 - BlaBlaPark1.3]

maybe i need to add appcompat_v_7, i tryed but every time it give me a lot of error

Upvotes: 0

Views: 91

Answers (1)

ymz
ymz

Reputation: 6924

if you have problems with appcompact 7 - there is a workaround

  1. right click you project and from the menu go to properties
  2. in the new window (shown in the picture) select android.
  3. at the lib section (red rectangle) remove appcompact7
  4. press add button and select appcompact7 again

enter image description here

if you want to manually change your styles, go to your project, track down the problematic xml files, and replace

android:Widget.Material.ActionButton  --> Materials new layout

with this:

android:style/Theme.Holo.Light  --> Holo theme (from android HoneyComb and later)

Upvotes: 1

Related Questions