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

Stack Overflow | Soar.Y | 8 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

    android ListView mListView.getChildAt(i) can't be get, how to solve it?

    Stack Overflow | 8 months ago | Soar.Y
    java.lang.IllegalStateException: Could not execute method for android:onClick

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      length=4; index=4

      at edu.nankai.soar.demof.SensorsActivity.log()
    2. edu.nankai.soar
      SensorsActivity.log
      1. edu.nankai.soar.demof.SensorsActivity.log(SensorsActivity.java:81)
      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 v7
      AppCompatViewInflater$DeclaredOnClickListener.onClick
      1. android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:288)
      1 frame
    5. Android Platform
      ActivityThread.main
      1. android.view.View.performClick(View.java:4851)
      2. android.view.View$PerformClick.run(View.java:20016)
      3. android.os.Handler.handleCallback(Handler.java:739)
      4. android.os.Handler.dispatchMessage(Handler.java:95)
      5. android.os.Looper.loop(Looper.java:135)
      6. android.app.ActivityThread.main(ActivityThread.java:5506)
      6 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    7. Android
      ZygoteInit$MethodAndArgsCaller.run
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:952)
      1 frame