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

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

,

You try to parse a String that contains non-numeric characters to an int. The string must contain decimal characters only, optionally beginning with a + or - sign.

Solutions on the web

via Stack Overflow by Karanvir1
, 6 months ago
Unable to start activity ComponentInfo{com.karanvir.ccc/com.karanvir.ccc.MainActivity}: java.lang.NumberFormatException: Invalid int: ""
via Appcelerator JIRA by Greg Kolesar, 1 year ago
Unable to start activity ComponentInfo{com.xxx/org.appcelerator.titanium.TiActivity}: java.lang.NumberFormatException: Invalid int: "NONE"
via Appcelerator JIRA by Greg Kolesar, 1 year ago
Unable to start activity ComponentInfo{com.xxx/org.appcelerator.titanium.TiActivity}: java.lang.NumberFormatException: Invalid int: "NONE"
via Stack Overflow by M.Zaube
, 6 months ago
Unable to start activity ComponentInfo{com.example.mikus.simplify/com.example.mikus.simplify.MainActivity}: java.lang.NumberFormatException: Invalid int: "android.support.v7.widget.AppCompatEditText{11f3506 VFED..CL. ......ID 0,0-0,0 #7f0b0057 app:id/skait}"
via Stack Overflow by Armando
, 1 month ago
Unable to start activity ComponentInfo{com.example.dell.mapamarcadoresoct17/com.example.dell.mapamarcadoresoct17.MainActivity}: java.lang.NumberFormatException: Invalid double: ""
via GitHub by eliasbrange
, 1 year ago
Unable to start activity ComponentInfo{com.xxx.template/com.xxx.template.AndroidLauncher}: java.lang.NullPointerException: Attempt to invoke interface method 'int com.badlogic.gdx.Graphics.getWidth()' on a null object reference
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.karanvir.ccc/com.karanvir.ccc.MainActivity}: 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)
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 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

Users with the same issue

6 times, 4 months ago
2 times, 10 months ago
3 times, 1 year ago
15 times, 1 year ago
4 times, 1 year ago
187 more bugmates

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