java.lang.IllegalStateException: Could not find a method saveData(View) in the activity class com.example.giuse.secondly.NewSheet for onClick handler on view class android.widget.Button with id 'button_save' at android.view.View$1.onClick(View.java:4007) 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)

Google Groups | Giuseppe Guarino | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Could not find a method saveData(View)

    Google Groups | 5 months ago | Giuseppe Guarino
    java.lang.IllegalStateException: Could not find a method saveData(View) in the activity class com.example.giuse.secondly.NewSheet for onClick handler on view class android.widget.Button with id 'button_save' at android.view.View$1.onClick(View.java:4007) 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)
  2. 0

    Support Package版ListFragmentにカスタムビューを適用するとsetListShownできなくなる問題とその対策 - ナカザンドットネット

    nkzn.info | 10 months ago
    java.lang.IllegalStateException: Can't be used with a custom content view at .support.v4.app.ListFragment.setListShown(ListFragment. :282) at .support.v4.app.ListFragment.setListShown(ListFragment. :258) at net.nkzn. .sample.v4.customlist.MainActivity.onClick(MainActivity. :38) at .view.View.performClick(View. :2604) at .view.View$PerformClick.run(View. :9314) at .os.Handler.handleCallback(Handler. :587) at .os.Handler.dispatchMessage(Handler. :92) at .os.Looper.loop(Looper. :130) at .app.ActivityThread.main(ActivityThread. :3691) at .lang.reflect.Method.invokeNative(Native Method) at .lang.reflect.Method.invoke(Method. :507)

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Could not find a method saveData(View) in the activity class com.example.giuse.secondly.NewSheet for onClick handler on view class android.widget.Button with id 'button_save' at android.view.View$1.onClick(View.java:4007) 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()
    2. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
      1 frame