java.lang.RuntimeException

Unable to start activity ComponentInfo{com.karanvir.ccc/com.karanvir.ccc.MainActivity}: java.lang.NumberFormatException: Invalid int: ""

Solutions on the web38837

  • via Stack Overflow by Karanvir1
    , 2 months ago
    Unable to start activity ComponentInfo{com.karanvir.ccc/com.karanvir.ccc.MainActivity}: java.lang.NumberFormatException: Invalid int: ""
  • Unable to start activity ComponentInfo{com.example.citylife/com.example.citylife.ExpenseCalculator}: java.lang.NumberFormatException: Invalid int: ""
  • Unable to start activity ComponentInfo{com.app.glapp/com.app.glapp.MainActivity}: java.lang.NumberFormatException: Invalid int: ""
  • Stack trace

    • java.lang.RuntimeException: Unable to start activity ComponentInfo{com.karanvir.ccc/com.karanvir.ccc.MainActivity}: java.lang.NumberFormatException: Invalid int: "" at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3253) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3349) at android.app.ActivityThread.access$1100(ActivityThread.java:221) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7224) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120) Caused by: java.lang.NumberFormatException: Invalid int: "" at java.lang.Integer.invalidInt(Integer.java:138) at java.lang.Integer.parseInt(Integer.java:358) at java.lang.Integer.parseInt(Integer.java:334) at com.karanvir.ccc.MainActivity.initializeUi(MainActivity.java:83) at com.karanvir.ccc.MainActivity.onCreate(MainActivity.java:64) at android.app.Activity.performCreate(Activity.java:6876) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3206) ... 9 more

    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

    6 times, 3 weeks ago
    2 times, 6 months ago
    3 times, 9 months ago
    15 times, 9 months ago
    4 times, 1 year ago
    164 more bugmates