2012-06-23 15 views
5

Ho compilato correttamente ActionBarSherlock in Eclipse.Errori nei file di risorse quando si utilizza ActionBarSherlock 4.1.0

ma ho 75 errori quando lo uso in un nuovo progetto:

abs4.1.0\library\res\values-v14\abs__styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar'. 
abs4.1.0\library\res\values-v14\abs__styles.xml:6: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.Solid'. 
abs4.1.0\library\res\values-v14\abs__styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar'. 
abs4.1.0\library\res\values-v14\abs__styles.xml:10: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.Solid'. 
abs4.1.0\library\res\values-v14\abs__styles.xml:12: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.Solid.Inverse'. 
abs4.1.0\library\res\values-v14\abs__styles.xml:15: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabView'. 
abs4.1.0\library\res\values-v14\abs__styles.xml:17: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabView'. 
abs4.1.0\library\res\values-v14\abs__styles.xml:19: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabView.Inverse'. 
abs4.1.0\library\res\values\abs__styles.xml:89: error: Error: No resource found that matches the given name: attr 'android:dividerPadding'. 
abs4.1.0\library\res\values\abs__styles.xml:88: error: Error: No resource found that matches the given name: attr 'android:showDividers'.  

MainActivity.java:

package com.stackoverflow.users.comfreek.testproject 

import android.os.Bundle; 
import com.actionbarsherlock.app.SherlockActivity; 

public class MainActivity extends SherlockActivity { 
    /** Called when the activity is first created. */ 
    @Override 
    public void onCreate(Bundle savedInstanceState) { 
     super.onCreate(savedInstanceState); 
     setContentView(R.layout.main); 
    } 
} 

ho già impostato il tema di attività per @style/Theme.Sherlock.

risposta

7

Assicurati di aver impostato il livello di API per 13.

Si prega di vedere la risposta a questo domanda simile https://stackoverflow.com/a/8591853/808940

+0

Grazie! Il mio obiettivo di compilazione era impostato su API 7 (2.1)! Accetterò la tua risposta tra 2 minuti ... – ComFreek

0

Impostare la destinazione di distribuzione del progetto:

android >= honeycomb

Problemi correlati