java.lang.IllegalStateException

Could not find a method btnscan(View) in the activity class com.example.wifimanager.MainActivity for onClick handler on view class android.widget.Button with id 'btn_scan'

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1013

  • Stack trace

    • java.lang.IllegalStateException: Could not find a method btnscan(View) in the activity class com.example.wifimanager.MainActivity for onClick handler on view class android.widget.Button with id 'btn_scan' at android.view.View$1.onClick(View.java:3956) at android.view.View.performClick(View.java:4630) at android.view.View$PerformClick.run(View.java:19339) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:157) at android.app.ActivityThread.main(ActivityThread.java:5335) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.NoSuchMethodException: btnscan [class android.view.View] at java.lang.Class.getConstructorOrMethod(Class.java:472) at java.lang.Class.getMethod(Class.java:857) at android.view.View$1.onClick(View.java:3949) ... 11 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    AkshayAkshay
    4 times, last one
    Nisha SinghNisha Singh
    14 times, last one
    sagarsagar
    2 times, last one
    SacchiSacchi
    18 times, last one
    adawolfsadawolfs
    4 times, last one
    90 more bugmates