ActionbarSherlock主题崩溃报告

时间:2013-09-25 15:38:41

标签: android actionbarsherlock

我收到一些崩溃报告,如下所示

java.lang.IllegalStateException: You must use Theme.Sherlock, Theme.Sherlock.Light, Theme.Sherlock.Light.DarkActionBar, or a derivative.

我检查我的清单文件并正确设置主题

<application
        android:allowBackup="true"
        android:icon="@drawable/logo"
        android:label="XXX"
        android:theme="@style/Theme.Sherlock.Light.DarkActionBar" 
        android:name="com.XXX.myapp">
        <activity
            android:name="XXX"
            android:label="XXX"
            android:configChanges="orientation|screenSize"            
            android:launchMode="singleTop" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

有谁知道这是什么问题?

当我调查ABS时,它似乎在这里失败

if (!a.hasValue(R.styleable.SherlockTheme_windowActionBar)) {
            throw new IllegalStateException("You must use Theme.Sherlock, Theme.Sherlock.Light, Theme.Sherlock.Light.DarkActionBar, or a derivative.");
        }

0 个答案:

没有答案