2012-06-23 13 views
5

EclipseでActionBarSherlockを正常にコンパイルしました。ActionBarSherlock 4.1.0を使用しているときのリソースファイルのエラー

しかし、私は新しいプロジェクトでそれを使用するとき、私は75個のエラーを取得:

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); 
    } 
} 

私はすでに@style/Theme.Sherlockに活動テーマを設定。プロジェクトのデプロイメント・ターゲットを設定し

答えて

7

は、あなたがこの同様の質問https://stackoverflow.com/a/8591853/808940

+0

の答えを見てください13.

にあなたのAPIレベルを設定していることを確認してくださいありがとう!ビルドターゲットはAPIレベル7(2.1)に設定されていました。私は2分であなたの答えを受け入れるでしょう... – ComFreek

0

android >= honeycomb

関連する問題