java.lang.RuntimeException: Binary XML file line #14: You must supply a layout_width attribute.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by gaganpreet4423
, 1 year ago
Binary XML file line #14: You must supply a layout_width attribute.
via GitHub by dbreskvar
, 1 year ago
Binary XML file line #14: You must supply a layout_width attribute.
via GitHub by azizimusa
, 2 years ago
Binary XML file line #14: You must supply a layout_width attribute.
via GitHub by sandeeptengale
, 1 year ago
Binary XML file line #14: You must supply a layout_width attribute.
via Stack Overflow by makkuzu
, 1 year ago
Binary XML file line #31: You must supply a layout_height attribute.
via Stack Overflow by makkuzu
, 1 year ago
Binary XML file line #31: You must supply a layout_height attribute.
java.lang.RuntimeException: Binary XML file line #14: You must supply a layout_width attribute.
at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:492)
at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:6314)
at android.view.ViewGroup$MarginLayoutParams.(ViewGroup.java:6483)
at android.widget.LinearLayout$LayoutParams.(LinearLayout.java:2043)
at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:1955)
at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:61)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:757)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at com.roomorama.caldroid.CaldroidFragment.onCreateView(CaldroidFragment.java:1257)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:1974)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1234)
at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2046)
at android.support.v4.app.Fragment.performActivityCreated(Fragment.java:1989)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1092)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1234)
at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2046)
at android.support.v4.app.Fragment.performActivityCreated(Fragment.java:1989)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1092)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1234)
at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:2046)
at android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:174)
at com.nagarro.reddoorz.reddoorz.ui.activity.BaseActivity.onStart(BaseActivity.java:133)
at com.nagarro.reddoorz.reddoorz.ui.activity.MainActivity.onStart(MainActivity.java:138)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1187)
at android.app.Activity.performStart(Activity.java:5409)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2507)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2595)
at android.app.ActivityThread.access$800(ActivityThread.java:169)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1513)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5529)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
at dalvik.system.NativeStart.main(NativeStart.java)

Users with the same issue

21 times, 1 year ago
14 times, 1 year ago
4 times, 1 year ago
Once, 1 year ago
7 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.