java.lang.IllegalStateException: Could not execute method for android:onClick

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • App crashes while launching in emulator
    via Stack Overflow by Zutru
    ,
  • Error NumberFormatException Android
    via Stack Overflow by Marco
    ,
  • GitHub comment 39#146299169
    via GitHub by njittam
    ,
  • GitHub comment 332#165390950
    via GitHub by PaijoRX
    ,
    • java.lang.IllegalStateException: Could not execute method for android:onClick at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:293) at android.view.View.performClick(View.java:4780) at android.view.View$PerformClick.run(View.java:19866) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:288) ... 10 more Caused by: java.lang.NumberFormatException: Invalid double: "3/1" at java.lang.StringToReal.invalidReal(StringToReal.java:63) at java.lang.StringToReal.initialParse(StringToReal.java:164) at java.lang.StringToReal.parseDouble(StringToReal.java:282) at java.lang.Double.parseDouble(Double.java:301) at mycompany.solveit.FullscreenActivity.generate(FullscreenActivity.java:210) ... 13 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Pierre
    Pierre2 times, last one,
    odd
    odd1 times, last one,
    eti22
    eti221 times, last one,
    34 more bugmates