Skip to content

Instantly share code, notes, and snippets.

@robUx4
Created November 14, 2013 10:06
Show Gist options
  • Save robUx4/7464399 to your computer and use it in GitHub Desktop.
Save robUx4/7464399 to your computer and use it in GitHub Desktop.
AppCompat crash in HoneyComb (3.1 and 3.2 at least). No idea in what context, it may be in some dialogs. Maybe showing the context to know which activity is wrong could help.
java.lang.IllegalStateException: ActionBarView can only be used with android:layout_width="MATCH_PARENT" (or fill_parent)
at android.support.v7.internal.widget.ActionBarView.onMeasure(SourceFile:840)
at android.view.View.measure(View.java:10828)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:267)
at android.support.v7.internal.widget.ActionBarContainer.onMeasure(SourceFile:233)
at android.view.View.measure(View.java:10828)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1284)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:613)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:519)
at android.view.View.measure(View.java:10828)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:267)
at android.view.View.measure(View.java:10828)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:267)
at android.view.View.measure(View.java:10828)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1284)
at android.widget.LinearLayout.measureVertical(LinearLayout.java:613)
at android.widget.LinearLayout.onMeasure(LinearLayout.java:519)
at android.view.View.measure(View.java:10828)
at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4351)
at android.widget.FrameLayout.onMeasure(FrameLayout.java:267)
at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:1912)
at android.view.View.measure(View.java:10828)
at android.view.ViewRoot.performTraversals(ViewRoot.java:913)
at android.view.ViewRoot.handleMessage(ViewRoot.java:2040)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:132)
at android.app.ActivityThread.main(ActivityThread.java:4123)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:491)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
at dalvik.system.NativeStart.main(Native Method)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment