我正在测试我的应用程序,该应用程序在具有Android版本2.3.6的设备上具有操作栏sherlock库。但是在加载启动画面后它会崩溃。在清单中,我将最小sdk设置为4,将目标sdk设置为18.主题是Sherlock.Light。什么可能导致被迫关闭?
以下是错误日志:
10-18 12:13:32.874: E/AndroidRuntime(313): Uncaught handler: thread main exiting due to uncaught exception
10-18 12:13:32.884: E/AndroidRuntime(313): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.budcode.findaspecialistv1/com.budcode.buddoctorbeta.MainActivity}: java.lang.IllegalStateException: No implementations match configuration.
10-18 12:13:32.884: E/AndroidRuntime(313): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2401)
10-18 12:13:32.884: E/AndroidRuntime(313): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2417)
10-18 12:13:32.884: E/AndroidRuntime(313): at android.app.ActivityThread.access$2100(ActivityThread.java:116)
10-18 12:13:32.884: E/AndroidRuntime(313): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
10-18 12:13:32.884: E/AndroidRuntime(313): at android.os.Handler.dispatchMessage(Handler.java:99)
10-18 12:13:32.884: E/AndroidRuntime(313): at android.os.Looper.loop(Looper.java:123)
10-18 12:13:32.884: E/AndroidRuntime(313): at android.app.ActivityThread.main(ActivityThread.java:4203)
10-18 12:13:32.884: E/AndroidRuntime(313): at java.lang.reflect.Method.invokeNative(Native Method)
10-18 12:13:32.884: E/AndroidRuntime(313): at java.lang.reflect.Method.invoke(Method.java:521)
10-18 12:13:32.884: E/AndroidRuntime(313): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
10-18 12:13:32.884: E/AndroidRuntime(313): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
10-18 12:13:32.884: E/AndroidRuntime(313): at dalvik.system.NativeStart.main(Native Method)
10-18 12:13:32.884: E/AndroidRuntime(313): Caused by: java.lang.IllegalStateException: No implementations match configuration.
10-18 12:13:32.884: E/AndroidRuntime(313): at com.actionbarsherlock.ActionBarSherlock.wrap(ActionBarSherlock.java:224)
10-18 12:13:32.884: E/AndroidRuntime(313): at com.actionbarsherlock.app.SherlockFragmentActivity.getSherlock(SherlockFragmentActivity.java:31)
10-18 12:13:32.884: E/AndroidRuntime(313): at com.actionbarsherlock.app.SherlockFragmentActivity.setContentView(SherlockFragmentActivity.java:261)
10-18 12:13:32.884: E/AndroidRuntime(313): at com.budcode.buddoctorbeta.MainActivity.onCreate(MainActivity.java:44)
10-18 12:13:32.884: E/AndroidRuntime(313): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
10-18 12:13:32.884: E/AndroidRuntime(313): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364)
10-18 12:13:32.884: E/AndroidRuntime(313): ... 11 more
答案 0 :(得分:0)
ABS仅为2.1+,因此您需要7的最低SDK:
android:minSdkVersion="7"