java.lang.IllegalArgumentException

width and height must be > 0

Solutions on the web11262

  • 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 com.wooplr.spotlight.SpotlightView.onDraw(SpotlightView.java:232) at android.view.View.draw(View.java:16068) at android.widget.FrameLayout.draw(FrameLayout.java:592) at android.view.View.updateDisplayListIfDirty(View.java:14999) at android.view.View.getDisplayList(View.java:15022) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3662) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3641) at android.view.View.updateDisplayListIfDirty(View.java:14959) at android.view.View.getDisplayList(View.java:15022) at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:275) at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:281) at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:320) at android.view.ViewRootImpl.draw(ViewRootImpl.java:2741) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2573) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2165) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1180) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6558) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:777) at android.view.Choreographer.doCallbacks(Choreographer.java:590) at android.view.Choreographer.doFrame(Choreographer.java:560) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:763) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:145) at android.app.ActivityThread.main(ActivityThread.java:5832) at java.lang.reflect.Method.invoke(Method.java) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)

    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

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