Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not execute method for android:onClick #965

Closed
SuperBeagleDog opened this issue Nov 9, 2021 · 0 comments
Closed

Could not execute method for android:onClick #965

SuperBeagleDog opened this issue Nov 9, 2021 · 0 comments

Comments

@SuperBeagleDog
Copy link

E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.alibaba.android.arouter.demo, PID: 6231
java.lang.IllegalStateException: Could not execute method for android:onClick
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:390)
at android.view.View.performClick(View.java:7316)
at android.view.View.performClickInternal(View.java:7290)
at android.view.View.access$3600(View.java:838)
at android.view.View$PerformClick.run(View.java:28262)
at android.os.Handler.handleCallback(Handler.java:900)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:219)
at android.app.ActivityThread.main(ActivityThread.java:8668)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:385)
at android.view.View.performClick(View.java:7316) 
at android.view.View.performClickInternal(View.java:7290) 
at android.view.View.access$3600(View.java:838) 
at android.view.View$PerformClick.run(View.java:28262) 
at android.os.Handler.handleCallback(Handler.java:900) 
at android.os.Handler.dispatchMessage(Handler.java:103) 
at android.os.Looper.loop(Looper.java:219) 
at android.app.ActivityThread.main(ActivityThread.java:8668) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109) 
Caused by: com.alibaba.android.arouter.exception.InitException: ARouter::Init::Invoke init(context) first!
at com.alibaba.android.arouter.launcher.ARouter.getInstance(ARouter.java:59)
at com.alibaba.android.arouter.demo.MainActivity.onClick(MainActivity.java:73)
at java.lang.reflect.Method.invoke(Native Method) 
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick(AppCompatViewInflater.java:385) 
at android.view.View.performClick(View.java:7316) 
at android.view.View.performClickInternal(View.java:7290) 
at android.view.View.access$3600(View.java:838) 
at android.view.View$PerformClick.run(View.java:28262) 
at android.os.Handler.handleCallback(Handler.java:900) 
at android.os.Handler.dispatchMessage(Handler.java:103) 
at android.os.Looper.loop(Looper.java:219) 
at android.app.ActivityThread.main(ActivityThread.java:8668) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109) 
I/Process: Sending signal. PID: 6231 SIG: 9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant