java.lang.IllegalArgumentException

width and height must be > 0

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web11266

  • via GitHub by themonki
    , 1 year ago
    width and height must be > 0
  • via GitHub by xbao
    , 1 year ago
    width and height must be > 0
  • via GitHub by pritishqualwebs
    , 1 month ago
    width and height must be > 0
  • Stack trace

    • java.lang.IllegalArgumentException: width and height must be > 0 at android.graphics.Bitmap.createBitmap(Bitmap.java:933) at android.graphics.Bitmap.createBitmap(Bitmap.java:912) at android.graphics.Bitmap.createBitmap(Bitmap.java:879) at android.graphics.drawable.VectorDrawable$VectorDrawableState.createCachedBitmapIfNeeded(VectorDrawable.java:711) at android.graphics.drawable.VectorDrawable.draw(VectorDrawable.java:278) at android.graphics.drawable.DrawableContainer.draw(DrawableContainer.java:76) at android.widget.ExpandableListView.dispatchDraw(ExpandableListView.java:460) at android.view.View.draw(View.java:16272) at android.widget.AbsListView.draw(AbsListView.java:5983) at android.view.View.updateDisplayListIfDirty(View.java:15192) at android.view.View.getDisplayList(View.java:15215) at android.view.View.draw(View.java:15990) at android.view.ViewGroup.drawChild(ViewGroup.java:3708) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3502) at android.view.View.draw(View.java:16272) at android.view.View.updateDisplayListIfDirty(View.java:15192) at android.view.View.getDisplayList(View.java:15215) at android.view.View.draw(View.java:15990) at android.view.ViewGroup.drawChild(ViewGroup.java:3708) at android.support.design.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:1127) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3502) at android.view.View.updateDisplayListIfDirty(View.java:15187) at android.view.View.getDisplayList(View.java:15215) at android.view.View.draw(View.java:15990) at android.view.ViewGroup.drawChild(ViewGroup.java:3708) at android.support.v4.widget.DrawerLayout.drawChild(DrawerLayout.java:1369) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3502) at android.view.View.draw(View.java:16272) at android.view.View.updateDisplayListIfDirty(View.java:15192) at android.view.View.getDisplayList(View.java:15215) at android.view.View.draw(View.java:15990) at android.view.ViewGroup.drawChild(ViewGroup.java:3708) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3502) at android.view.View.updateDisplayListIfDirty(View.java:15187) at android.view.View.getDisplayList(View.java:15215) at android.view.View.draw(View.java:15990) at android.view.ViewGroup.drawChild(ViewGroup.java:3708) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3502) at android.view.View.updateDisplayListIfDirty(View.java:15187) at android.view.View.getDisplayList(View.java:15215) at android.view.View.draw(View.java:15990) at android.view.ViewGroup.drawChild(ViewGroup.java:3708) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3502) at android.view.View.updateDisplayListIfDirty(View.java:15187) at android.view.View.getDisplayList(View.java:15215) at android.view.View.draw(View.java:15990) at android.view.ViewGroup.drawChild(ViewGroup.java:3708) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3502) at android.view.View.updateDisplayListIfDirty(View.java:15187) at android.view.View.getDisplayList(View.java:15215) at android.view.View.draw(View.java:15990) at android.view.ViewGroup.drawChild(ViewGroup.java:3708) at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3502) at android.view.View.draw(View.java:16272) at android.widget.FrameLayout.draw(FrameLayout.java:592) at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:3047) at android.view.View.updateDisplayListIfDirty(View.java:15192) at android.view.View.getDisplayList(View.java:15215) at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:307) at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:313) at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:352) at android.view.ViewRootImpl.draw(ViewRootImpl.java:2815) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2638) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2226)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    2 times, 5 months ago
    Once, 5 months ago
    4 times, 10 months ago
    Once, 10 months ago
    10 more bugmates