测试我的手机上我的应用程序 它正常工作的AVD 但它不能我的手机应用程序错误
这里的工作是错误日志
java.lang.IllegalStateException: Could not find a method goto MainActivity(View) in the activity class com.FF_studio.device_flash_1.EulaActivity for onClick handler on view class android.widget.Button with id 'agree'
at android.view.View$1.onClick(View.java:3841)
at android.view.View.performClick(View.java:4469)
at android.view.View$PerformClick.run(View.java:18788)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5349)
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:835)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:651)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NoSuchMethodException: goto MainActivity [class android.view.View]
at java.lang.Class.getConstructorOrMethod(Class.java:472)
at java.lang.Class.getMethod(Class.java:864)
at android.view.View$1.onClick(View.java:3834)
... 11 more
'goTo'?这不是Java方法。请包括您的代码 –