java.lang.IllegalStateException: Could not execute method of the activity

Stack Overflow | Max D | 6 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

    MediaPlayer Crashing my App (edit: it was caused by an out of bound array)

    Stack Overflow | 6 months ago | Max D
    java.lang.IllegalStateException: Could not execute method of the activity

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      length=3; index=3

      at com.maxd.soundtesting.MainActivity.buttonTapped()
    2. com.maxd.soundtesting
      MainActivity.buttonTapped
      1. com.maxd.soundtesting.MainActivity.buttonTapped(MainActivity.java:22)
      1 frame
    3. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    4. Android Platform
      ActivityThread.main
      1. android.view.View$1.onClick(View.java:4015)
      2. android.view.View.performClick(View.java:4780)
      3. android.view.View$PerformClick.run(View.java:19866)
      4. android.os.Handler.handleCallback(Handler.java:739)
      5. android.os.Handler.dispatchMessage(Handler.java:95)
      6. android.os.Looper.loop(Looper.java:135)
      7. android.app.ActivityThread.main(ActivityThread.java:5257)
      7 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
      2 frames