1

我的应用程序我正在使用 ABS 我想浏览选项卡(Actionbarsherlock + 选项卡 + 多个片段?)当我使用此代码中的第二个答案(完全复制)时,它在我的 Android 4.0 调试设备上工作正常但是当我在我的 GingerBread 设备上测试它会停止。我还导入了支持库,但它一直在 GingerBread 上崩溃。

我无法为任何 logcat 提供错误,因为我无法调试我的 GingerBread 设备。在 Android 4 设备上它运行良好。

E/AndroidRuntime(30187): java.lang.RuntimeException: Unable to start activity ComponentInfo{nl.safan.e_app/nl.safan.e_app.ABSTabsViewPagerActivity}: java.lang.IllegalStateException: You must use Theme.Sherlock, Theme.Sherlock.Light, Theme.Sherlock.Light.DarkActionBar, or a derivative.
E/AndroidRuntime(30187):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
E/AndroidRuntime(30187):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
E/AndroidRuntime(30187):    at android.app.ActivityThread.access$1500(ActivityThread.java:117)
E/AndroidRuntime(30187):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
E/AndroidRuntime(30187):    at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(30187):    at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime(30187):    at android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime(30187):    at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(30187):    at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(30187):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:875)
E/AndroidRuntime(30187):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:633)
E/AndroidRuntime(30187):    at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(30187): Caused by: java.lang.IllegalStateException: You must use Theme.Sherlock, Theme.Sherlock.Light, Theme.Sherlock.Light.DarkActionBar, or a derivative.
E/AndroidRuntime(30187):    at com.actionbarsherlock.internal.ActionBarSherlockCompat.generateLayout(ActionBarSherlockCompat.java:1007)
E/AndroidRuntime(30187):    at com.actionbarsherlock.internal.ActionBarSherlockCompat.installDecor(ActionBarSherlockCompat.java:919)
E/AndroidRuntime(30187):    at com.actionbarsherlock.internal.ActionBarSherlockCompat.setContentView(ActionBarSherlockCompat.java:872)
E/AndroidRuntime(30187):    at com.actionbarsherlock.ActionBarSherlock.setContentView(ActionBarSherlock.java:668)
E/AndroidRuntime(30187):    at com.actionbarsherlock.app.SherlockFragmentActivity.setContentView(SherlockFragmentActivity.java:261)
E/AndroidRuntime(30187):    at nl.safan.e_app.ABSTabsViewPagerActivity.onCreate(ABSTabsViewPagerActivity.java:34)
E/AndroidRuntime(30187):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime(30187):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
E/AndroidRuntime(30187):    ... 11 more
4

0 回答 0