2012-06-23 27 views
5

Tôi đã biên soạn thành công ActionBarSherlock trong Eclipse.Lỗi trong tệp tài nguyên khi sử dụng ActionBarSherlock 4.1.0

Nhưng tôi nhận được 75 lỗi khi tôi sử dụng nó trong một dự án mới:

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

tôi đã thiết lập các chủ đề hoạt động để @style/Theme.Sherlock.

Trả lời

7

Hãy chắc chắn rằng bạn đã thiết lập mức API của bạn để 13.

hãy xem câu trả lời về câu hỏi tương tự này https://stackoverflow.com/a/8591853/808940

+0

Cảm ơn! Mục tiêu xây dựng của tôi thực sự được đặt thành API cấp 7 (2.1)! Tôi sẽ chấp nhận câu trả lời của bạn sau 2 phút ... – ComFreek

0

Đặt mục tiêu triển khai của dự án để:

android >= honeycomb

Các vấn đề liên quan