私のアプリの主な活動は、レイアウト上に多くのボタンがある機能セレクターとして機能します。別の機能を追加した後にこのエラーが発生しました。これは、メイン アクティビティのアーキテクチャを分離するための他の古い機能に関連するものではありません。その前に、以下の 2 つのアクティビティがうまくいきました。私が逃したポイントは何ですか?
Main: IPTV_Wallpaper
RSS: RSSDisplayerMain
Map: HealthMapMain
ここに logcat があります: RSS リーダー アクティビティの Logcat
06-23 16:15:00.332: E/AndroidRuntime(3124): FATAL EXCEPTION: main
06-23 16:15:00.332: E/AndroidRuntime(3124): java.lang.IllegalStateException: Could not execute method of the activity
06-23 16:15:00.332: E/AndroidRuntime(3124): at android.view.View$1.onClick(View.java:3597)
06-23 16:15:00.332: E/AndroidRuntime(3124): at android.view.View.performClick(View.java:4202)
06-23 16:15:00.332: E/AndroidRuntime(3124): at android.view.View$PerformClick.run(View.java:17341)
06-23 16:15:00.332: E/AndroidRuntime(3124): at android.os.Handler.handleCallback(Handler.java:725)
06-23 16:15:00.332: E/AndroidRuntime(3124): at android.os.Handler.dispatchMessage(Handler.java:92)
06-23 16:15:00.332: E/AndroidRuntime(3124): at android.os.Looper.loop(Looper.java:137)
06-23 16:15:00.332: E/AndroidRuntime(3124): at android.app.ActivityThread.main(ActivityThread.java:5039)
06-23 16:15:00.332: E/AndroidRuntime(3124): at java.lang.reflect.Method.invokeNative(Native Method)
06-23 16:15:00.332: E/AndroidRuntime(3124): at java.lang.reflect.Method.invoke(Method.java:511)
06-23 16:15:00.332: E/AndroidRuntime(3124): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
06-23 16:15:00.332: E/AndroidRuntime(3124): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
06-23 16:15:00.332: E/AndroidRuntime(3124): at dalvik.system.NativeStart.main(Native Method)
06-23 16:15:00.332: E/AndroidRuntime(3124): Caused by: java.lang.reflect.InvocationTargetException
06-23 16:15:00.332: E/AndroidRuntime(3124): at java.lang.reflect.Method.invokeNative(Native Method)
06-23 16:15:00.332: E/AndroidRuntime(3124): at java.lang.reflect.Method.invoke(Method.java:511)
06-23 16:15:00.332: E/AndroidRuntime(3124): at android.view.View$1.onClick(View.java:3592)
06-23 16:15:00.332: E/AndroidRuntime(3124): ... 11 more
06-23 16:15:00.332: E/AndroidRuntime(3124): Caused by: java.lang.NoClassDefFoundError: tw.danny.idcc_hw2.RSSDisplayerMain
06-23 16:15:00.332: E/AndroidRuntime(3124): at tw.danny.iptv_1.IPTV_Wallpaper.NewsReader(IPTV_Wallpaper.java:116)
06-23 16:15:00.332: E/AndroidRuntime(3124): ... 14 more
Google マップ API アクティビティの Logcat
06-23 16:15:49.582: E/dalvikvm(3143): Could not find class 'com.google.android.gms.maps.model.LatLng', referenced from method tw.danny.healthmap.HealthMapMain.<clinit>
06-23 16:15:49.582: E/dalvikvm(3143): Could not find class 'com.google.android.gms.maps.model.MarkerOptions', referenced from method tw.danny.healthmap.HealthMapMain.MarkOnMap
06-23 16:15:49.592: E/AndroidRuntime(3143): FATAL EXCEPTION: main
06-23 16:15:49.592: E/AndroidRuntime(3143): java.lang.ExceptionInInitializerError
06-23 16:15:49.592: E/AndroidRuntime(3143): at java.lang.Class.newInstanceImpl(Native Method)
06-23 16:15:49.592: E/AndroidRuntime(3143): at java.lang.Class.newInstance(Class.java:1319)
06-23 16:15:49.592: E/AndroidRuntime(3143): at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
06-23 16:15:49.592: E/AndroidRuntime(3143): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
06-23 16:15:49.592: E/AndroidRuntime(3143): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
06-23 16:15:49.592: E/AndroidRuntime(3143): at android.app.ActivityThread.access$600(ActivityThread.java:141)
06-23 16:15:49.592: E/AndroidRuntime(3143): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
06-23 16:15:49.592: E/AndroidRuntime(3143): at android.os.Handler.dispatchMessage(Handler.java:99)
06-23 16:15:49.592: E/AndroidRuntime(3143): at android.os.Looper.loop(Looper.java:137)
06-23 16:15:49.592: E/AndroidRuntime(3143): at android.app.ActivityThread.main(ActivityThread.java:5039)
06-23 16:15:49.592: E/AndroidRuntime(3143): at java.lang.reflect.Method.invokeNative(Native Method)
06-23 16:15:49.592: E/AndroidRuntime(3143): at java.lang.reflect.Method.invoke(Method.java:511)
06-23 16:15:49.592: E/AndroidRuntime(3143): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
06-23 16:15:49.592: E/AndroidRuntime(3143): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
06-23 16:15:49.592: E/AndroidRuntime(3143): at dalvik.system.NativeStart.main(Native Method)
06-23 16:15:49.592: E/AndroidRuntime(3143): Caused by: java.lang.NoClassDefFoundError: com.google.android.gms.maps.model.LatLng
06-23 16:15:49.592: E/AndroidRuntime(3143): at tw.danny.healthmap.HealthMapMain.<clinit>(HealthMapMain.java:36)
06-23 16:15:49.592: E/AndroidRuntime(3143): ... 15 more