java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.a1003137m.profitcalculator/com.example.a1003137m.profitcalculator.ChartActivity}: java.lang.IllegalArgumentException: width and height must be > 0

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

Samebug tips

,

Create an empty public constructor in your code.

Solutions on the web

via Stack Overflow by cmackie21
, 1 year ago
Unable to start activity ComponentInfo{com.example.a1003137m.profitcalculator/com.example.a1003137m.profitcalculator.ChartActivity}: java.lang.IllegalArgumentException: width and height must be > 0
via GitHub by vanitasvitae
, 7 months ago
Unable to start activity ComponentInfo{com.simplemobiletools.gallery/com.simplemobiletools.gallery.activities.PhotoActivity}: java.lang.IllegalArgumentException: Width and height must be Target#SIZE_ORIGINAL or > 0
via Stack Overflow by maddesa
, 5 months ago
Unable to start activity ComponentInfo{com.maddesa.iottest/com.maddesa.iottest.MainActivity}: java.lang.IllegalArgumentException: I2C1(0x29) illegal argument: I2C registers must be between 0x00 and 0xFF
via Stack Overflow by kritttt
, 6 months ago
Unable to start activity ComponentInfo{in.mahabir/in.mahabir.ui.profile.ProfileActivity}: java.lang.IllegalArgumentException: Path must not be empty.
via GitHub by phil-lopreiato
, 9 months ago
Unable to start activity ComponentInfo{com.thebluealliance.androidclient/com.thebluealliance.androidclient.activities.ViewEventActivity}: java.lang.IllegalArgumentException: ViewEventActivity must be given a valid event key
via Stack Overflow by PutraKg
, 1 year ago
Unable to start activity ComponentInfo{com.amazon.sdktestclient/com.amazon.sdktestclient.iap.ui.PurchaseActivity}: java.lang.IllegalArgumentException: Path must not be empty.
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.a1003137m.profitcalculator/com.example.a1003137m.profitcalculator.ChartActivity}: java.lang.IllegalArgumentException: width and height must be > 0
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2426)

Users with the same issue

66 times, 3 weeks ago
Once, 2 months ago
33 times, 3 months ago
8 times, 3 months ago
468 times, 4 months ago

Write tip

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