2011-12-07 11 views
1

私はのIntelliJ IDEAでのAndroidプロジェクトにActionBarSherlockを追加した、と私は次のようにIDEでActionBarSherlockのv3.4.2ビルドエラー

すべてが、私は、プラットフォームのAPI 11に対して構築したんだと言うビルドエラーを見ています私はこれらのスタイルを含めることを期待していましたが、API 11を見ると見えません。

私には何が欠けていますか? ABSはそれ以降のAndroidプラットフォームのバージョンでのみ動作しますか?

Information:Compilation completed with 6 errors and 0 warnings 
Information:6 errors 
Information:0 warnings 
C:\Users\Ollie\Documents\Dropbox\Tech\Blah\ActionBarSherlock\res\values-v13\abs__styles.xml 
    Error:Error:line (4)C:\Users\Ollie\Documents\Dropbox\Tech\Blah\ActionBarSherlock\res\values-v13\abs__styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabBar'. 
    Error:Error:line (5)C:\Users\Ollie\Documents\Dropbox\Tech\Blah\ActionBarSherlock\res\values-v13\abs__styles.xml:5: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabView'. 
    Error:Error:line (6)C:\Users\Ollie\Documents\Dropbox\Tech\Blah\ActionBarSherlock\res\values-v13\abs__styles.xml:6: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar.TabText'. 
    Error:Error:line (8)C:\Users\Ollie\Documents\Dropbox\Tech\Blah\ActionBarSherlock\res\values-v13\abs__styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabBar'. 
    Error:Error:line (9)C:\Users\Ollie\Documents\Dropbox\Tech\Blah\ActionBarSherlock\res\values-v13\abs__styles.xml:9: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabView'. 
    Error:Error:line (10)C:\Users\Ollie\Documents\Dropbox\Tech\Blah\ActionBarSherlock\res\values-v13\abs__styles.xml:10: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.Light.ActionBar.TabText'. 

関連するソース:マニフェストのInt

<?xml version="1.0" encoding="utf-8"?> 

<resources> 
    <style name="Widget.Sherlock.ActionBar.TabBar" parent="android:Widget.Holo.ActionBar.TabBar"></style> 
    <style name="Widget.Sherlock.ActionBar.TabView" parent="android:Widget.Holo.ActionBar.TabView"></style> 
    <style name="Widget.Sherlock.ActionBar.TabText" parent="android:Widget.Holo.ActionBar.TabText"></style> 

<style name="Widget.Sherlock.Light.ActionBar.TabBar" parent="android:Widget.Holo.Light.ActionBar.TabBar"></style> 
<style name="Widget.Sherlock.Light.ActionBar.TabView" parent="android:Widget.Holo.Light.ActionBar.TabView"></style> 
<style name="Widget.Sherlock.Light.ActionBar.TabText" parent="android:Widget.Holo.Light.ActionBar.TabText"></style> 

答えて

3

ターゲットバージョン13を使用することがあります。 はライブラリのマニフェストの下にあります。

<uses-sdk 
     android:minSdkVersion="4" 
     android:targetSdkVersion="13" /> 

</manifest> 
+0

私はジェイクは、ライブラリ自体は、Android 3.2(APIレベル13)に対して構築されなければならない」と言う気づいはい、。あなたのプロジェクトは(それが試すことが最善である可能性としてSDKの最新バージョンを使用して構築されなければなりませんライブラリと同じバージョンを使用してください)これは必須ではなく、Android 3.0(APIレベル11)以上のSDKの任意のバージョンに対してビルドすることができます。 –

+0

...(現在は少なくとも14歳未満) –