从活动开始片段活动? “java.lang.IllegalStateException:无法执行活动的方法”onClick(查看视图)?

时间:2013-06-04 08:13:00

标签: android

06-04 13:38:23.926: E/AndroidRuntime(13869): FATAL EXCEPTION: main
06-04 13:38:23.926: E/AndroidRuntime(13869): java.lang.IllegalStateException: Could not execute method of the activity
06-04 13:38:23.926: E/AndroidRuntime(13869):    at android.view.View$1.onClick(View.java:3647)
06-04 13:38:23.926: E/AndroidRuntime(13869):    at android.view.View.performClick(View.java:4147)
06-04 13:38:23.926: E/AndroidRuntime(13869):    at android.view.View$PerformClick.run(View.java:17161)
06-04 13:38:23.926: E/AndroidRuntime(13869):    at android.os.Handler.handleCallback(Handler.java:615)
06-04 13:38:23.926: E/AndroidRuntime(13869):    at android.os.Handler.dispatchMessage(Handler.java:92)
06-04 13:38:23.926: E/AndroidRuntime(13869):    at android.os.Looper.loop(Looper.java:213)
06-04 13:38:23.926: E/AndroidRuntime(13869):    at android.app.ActivityThread.main(ActivityThread.java:4791)
06-04 13:38:23.926: E/AndroidRuntime(13869):    at java.lang.reflect.Method.invokeNative(Native Method)
06-04 13:38:23.926: E/AndroidRuntime(13869):    at java.lang.reflect.Method.invoke(Method.java:511)
06-04 13:38:23.926: E/AndroidRuntime(13869):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
06-04 13:38:23.926: E/AndroidRuntime(13869):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
06-04 13:38:23.926: E/AndroidRuntime(13869):    at dalvik.system.NativeStart.main(Native Method)
06-04 13:38:23.926: E/AndroidRuntime(13869): Caused by: java.lang.reflect.InvocationTargetException
06-04 13:38:23.926: E/AndroidRuntime(13869):    at java.lang.reflect.Method.invokeNative(Native Method)
06-04 13:38:23.926: E/AndroidRuntime(13869):    at java.lang.reflect.Method.invoke(Method.java:511)
06-04 13:38:23.926: E/AndroidRuntime(13869):    at android.view.View$1.onClick(View.java:3642)
06-04 13:38:23.926: E/AndroidRuntime(13869):    ... 11 more
06-04 13:38:23.926: E/AndroidRuntime(13869): Caused by: java.lang.NoClassDefFoundError: com.qc.app.ffma.MapScreen
06-04 13:38:23.926: E/AndroidRuntime(13869):    at com.qc.app.ffma.ui.PFZScr.gpsScreen(PFZScr.java:338)
06-04 13:38:23.926: E/AndroidRuntime(13869):    ... 14 more

1 个答案:

答案 0 :(得分:0)

你错过了这门课程:

com.qc.app.ffma.MapScreen

您的依赖项(libs / jars)可能出现问题 - 请检查此解决方案(java.lang.NoClassDefFoundError with external jars in Android project