12-26 07:08:21.891: E/AndroidRuntime(788): FATAL EXCEPTION: main 12-26 07:08:21.891: E/AndroidRuntime(788): java.lang.RuntimeException: Unable to instantiate service com.example.music.MusicService: java.lang.ClassCastException: com.example.music.MusicService cannot be cast to android.app.Service 12-26 07:08:21.891: E/AndroidRuntime(788): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2513) 12-26 07:08:21.891: E/AndroidRuntime(788): at android.app.ActivityThread.access$1600(ActivityThread.java:141) 12-26 07:08:21.891: E/AndroidRuntime(788): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316) 12-26 07:08:21.891: E/AndroidRuntime(788): at android.os.Handler.dispatchMessage(Handler.java:99) 12-26 07:08:21.891: E/AndroidRuntime(788): at android.os.Looper.loop(Looper.java:137) 12-26 07:08:21.891: E/AndroidRuntime(788): at android.app.ActivityThread.main(ActivityThread.java:5041) 12-26 07:08:21.891: E/AndroidRuntime(788): at java.lang.reflect.Method.invokeNative(Native Method) 12-26 07:08:21.891: E/AndroidRuntime(788): at java.lang.reflect.Method.invoke(Method.java:511) 12-26 07:08:21.891: E/AndroidRuntime(788): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 12-26 07:08:21.891: E/AndroidRuntime(788): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 12-26 07:08:21.891: E/AndroidRuntime(788): at dalvik.system.NativeStart.main(Native Method) 12-26 07:08:21.891: E/AndroidRuntime(788): Caused by: java.lang.ClassCastException: com.example.music.MusicService cannot be cast to android.app.Service 12-26 07:08:21.891: E/AndroidRuntime(788): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2510) 12-26 07:08:21.891: E/AndroidRuntime(788): ... 10 more 12-26 07:08:29.281: E/Trace(806): error opening trace file: No such file or directory (2) 12-26 07:08:29.341: E/AndroidRuntime(806): FATAL EXCEPTION: main 12-26 07:08:29.341: E/AndroidRuntime(806): java.lang.RuntimeException: Unable to instantiate service com.example.music.MusicService: java.lang.ClassCastException: co m.example.music.MusicService cannot be cast to android.app.Service 12-26 07:08:29.341: E/AndroidRuntime(806): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2513) 12-26 07:08:29.341: E/AndroidRuntime(806): at android.app.ActivityThread.access$1600(ActivityThread.java:141) 12-26 07:08:29.341: E/AndroidRuntime(806): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316) 12-26 07:08:29.341: E/AndroidRuntime(806): at android.os.Handler.dispatchMessage(Handler.java:99) 12-26 07:08:29.341: E/AndroidRuntime(806): at android.os.Looper.loop(Looper.java:137) 12-26 07:08:29.341: E/AndroidRuntime(806): at android.app.ActivityThread.main(ActivityThread.java:5041) 12-26 07:08:29.341: E/AndroidRuntime(806): at java.lang.reflect.Method.invokeNative(Native Method) 12-26 07:08:29.341: E/AndroidRuntime(806): at java.lang.reflect.Method.invoke(Method.java:511) 12-26 07:08:29.341: E/AndroidRuntime(806): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 12-26 07:08:29.341: E/AndroidRuntime(806): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 12-26 07:08:29.341: E/AndroidRuntime(806): at dalvik.system.NativeStart.main(Native Method) 12-26 07:08:29.341: E/AndroidRuntime(806): Caused by: java.lang.ClassCastException: com.example.music.MusicService cannot be cast to android.app.Service 12-26 07:08:29.341: E/AndroidRuntime(806): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2510) 12-26 07:08:29.341: E/AndroidRuntime(806): ... 10 more 12-26 07:13:57.142: E/Trace(941): error opening trace file: No such file or directory (2) 12-26 07:13:57.601: E/AndroidRuntime(941): FATAL EXCEPTION: main 12-26 07:13:57.601: E/AndroidRuntime(941): java.lang.RuntimeException: Unable to instantiate service com.example.music.MusicService: java.lang.ClassCastExcepti on: com.examp le.music.MusicService cannot be cast to android.app.Service 12-26 07:13:57.601: E/AndroidRuntime(941): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2513) 12-26 07:13:57.601: E/AndroidRuntime(941): at android.app.ActivityThread.access$1600(ActivityThread.java:141) 12-26 07:13:57.601: E/AndroidRuntime(941): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316) 12-26 07:13:57.601: E/AndroidRuntime(941): at android.os.Handler.dispatchMessage(Handler.java:99) 12-26 07:13:57.601: E/AndroidRuntime(941): at android.os.Looper.loop(Looper.java:137) 12-26 07:13:57.601: E/AndroidRuntime(941): at android.app.ActivityThread.main(ActivityThread.java:5041) 12-26 07:13:57.601: E/AndroidRuntime(941): at java.lang.reflect.Method.invokeNative(Native Method) 12-26 07:13:57.601: E/AndroidRuntime(941): at java.lang.reflect.Method.invoke(Method.java:511) 12-26 07:13:57.601: E/AndroidRuntime(941): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 12-26 07:13:57.601: E/AndroidRuntime(941): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 12-26 07:13:57.601: E/AndroidRuntime(941): at dalvik.system.NativeStart.main(Native Method) 12-26 07:13:57.601: E/AndroidRuntime(941): Caused by: java.lang.ClassCastException: com.example.music.MusicS ervice cannot be cast to android.app.Service 12-26 07:13:57.601: E/AndroidRuntime(941): at android.app.ActivityThread.handleCreateService(ActivityTh read.java:2510) 12-26 07:13:57.601: E/AndroidRuntime(941): ... 10 more 12-26 07:14:08.661: E/Trace(960): error opening trace file: No such file or directory (2) 12-26 07:14:08.711: E/AndroidRuntime(960): FATAL EXCEPTION: main 12-26 07:14:08.711: E/AndroidRuntime(960): java.lang.RuntimeException: Unable to instantiate service com.example.music.MusicService: java.lang.ClassCastException: com.example.music.MusicService cannot be cast to android.app.Service 12-26 07:14:08.711: E/AndroidRuntime(960): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2513) 12-26 07:14:08.711: E/AndroidRuntime(960): at android.app.ActivityThread.access$1600(ActivityThread.java:141) 12-26 07:14:08.711: E/AndroidRuntime(960): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316) 12-26 07:14:08.711: E/AndroidRuntime(960): at android.os.Handler.dispatchMessage(Handler.java:99) 12-26 07:14:08.711: E/AndroidRuntime(960): at android.os.Looper.loop(Looper.java:137) 12-26 07:14:08.711: E/AndroidRuntime(960): at android.app.ActivityThread.main(ActivityThread.java:5041) 12-26 07:14:08.711: E/AndroidRuntime(960): at java.lang.reflect.Method.invokeNative(Native Method) 12-26 07:14:08.711: E/AndroidRuntime(960): at java.lang.reflect.Method.invoke(Method.java:511) 12-26 07:14:08.711: E/AndroidRuntime(960): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 12-26 07:14:08.711: E/AndroidRuntime(960): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 12-26 07:14:08.711: E/AndroidRuntime(960): at dalvik.system.NativeStart.main(Native Method) 12-26 07:14:08.711: E/AndroidRuntime(960): Caused by: java.lang.ClassCastException: com.example.music.Mu sicService cannot be cast to android.app.Service 12-26 07:14:08.711: E/AndroidRuntime(960): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2510) 12-26 07:14:08.711: E/AndroidRuntime(960): ... 10 more
java小学三班
相关分类