-
Notifications
You must be signed in to change notification settings - Fork 3.5k
ABS causes an IllegalStateException on some devices #1053
Comments
Well, you did read the error message, right? :) The parent style seems to be wrong (maybe in one of the configurations?) |
It always crash when I open the music balance settings page. 2013/10/23 Philip Schiffer [email protected]
Alex.Liu |
When you use actionbarsherlock, in your AndroidManifest.xml you should be specify theme which is inherit from sherlock theme. |
Reference to #966 ? |
Im using "Theme.Sherlock" style, and I have this exact error in my Developer Console. This is my Manifest:
|
You should specify theme inherits from Theme.Sherlock in your activity instead of your application, as my AndroidManifest.xml below:
|
2013/12/16 Thuan Nguyen [email protected]
|
In some devices that run Android 2.1+ i have this exception:
java.lang.RuntimeException: Unable to start activity
java.lang.IllegalStateException: You must use Theme.Sherlock, Theme.Sherlock.Light, Theme.Sherlock.Light.DarkActionBar, or a derivative.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1816)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1837)
at android.app.ActivityThread.access$1500(ActivityThread.java:132)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1033)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:4196)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalStateException: You must use Theme.Sherlock, Theme.Sherlock.Light, Theme.Sherlock.Light.DarkActionBar, or a derivative.
at com.actionbarsherlock.internal.ActionBarSherlockCompat.generateLayout(ActionBarSherlockCompat.java:976)
at com.actionbarsherlock.internal.ActionBarSherlockCompat.installDecor(ActionBarSherlockCompat.java:902)
at com.actionbarsherlock.internal.ActionBarSherlockCompat.setContentView(ActionBarSherlockCompat.java:836)
at com.actionbarsherlock.app.SherlockActivity.setContentView(SherlockActivity.java:229)
at com.don.app.constitutionduniger.MainActivity.onCreate(MainActivity.java:31)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1780)
... 11 more
The text was updated successfully, but these errors were encountered: