为了账号安全,请及时绑定邮箱和手机立即绑定

编译通过但是运行的时候就出错,已停止运行。看log有点不知从何下手,求指教。log如下:

10-11 13:33:46.128: E/BatteryService(160): usbOnlinePath not found

10-11 13:33:46.128: E/BatteryService(160): batteryVoltagePath not found

10-11 13:33:46.128: E/BatteryService(160): batteryTemperaturePath not found

10-11 13:33:46.228: E/PowerManagerService-JNI(160): Couldn't load power module (No such file or directory)

10-11 13:33:51.368: E/SoundPool(160): error loading /system/media/audio/ui/Lock.ogg

10-11 13:33:51.368: E/SoundPool(160): error loading /system/media/audio/ui/Unlock.ogg

10-11 13:33:51.508: E/EventHub(160): could not get driver version for /dev/input/mouse0, Not a typewriter

10-11 13:33:51.508: E/EventHub(160): could not get driver version for /dev/input/mice, Not a typewriter

10-11 13:33:51.608: E/Trace(160): error opening trace file: No such file or directory (2)

10-11 13:33:52.388: E/CommandListener(32): Failed to open /proc/sys/net/ipv6/conf/wlan0/disable_ipv6: No such file or directory

10-11 13:33:52.418: E/WifiStateMachine(160): Failed to disable IPv6: java.lang.IllegalStateException: command '1 interface ipv6 wlan0 disable' failed with '400 1 Failed to change IPv6 state (No such file or directory)'

10-11 13:33:52.469: E/MobileDataStateTracker(160): default: Ignoring feature request because could not acquire PhoneService

10-11 13:33:52.469: E/MobileDataStateTracker(160): default: Could not enable APN type "default"

10-11 13:33:54.349: E/Trace(215): error opening trace file: No such file or directory (2)

10-11 13:33:56.489: E/Trace(229): error opening trace file: No such file or directory (2)

10-11 13:33:56.779: E/ThrottleService(160): problem during onPollAlarm: java.lang.IllegalStateException: problem parsing stats: java.io.FileNotFoundException: /proc/net/xt_qtaguid/iface_stat_all: open failed: ENOENT (No such file or directory)

10-11 13:33:57.498: E/Trace(248): error opening trace file: No such file or directory (2)

10-11 13:33:57.918: E/Trace(260): error opening trace file: No such file or directory (2)

10-11 13:33:59.928: E/Trace(282): error opening trace file: No such file or directory (2)

10-11 13:34:02.218: E/ActivityThread(229): Failed to find provider info for com.android.inputmethod.latin.dictionarypack

10-11 13:34:02.218: E/BinaryDictionaryGetter(229): Could not find a dictionary pack

10-11 13:34:03.658: E/Trace(308): error opening trace file: No such file or directory (2)

10-11 13:34:06.884: E/Trace(337): error opening trace file: No such file or directory (2)

10-11 13:34:07.354: E/SoundPool(160): error loading /system/media/audio/ui/Effect_Tick.ogg

10-11 13:34:07.354: E/SoundPool(160): error loading /system/media/audio/ui/Effect_Tick.ogg

10-11 13:34:07.354: E/SoundPool(160): error loading /system/media/audio/ui/Effect_Tick.ogg

10-11 13:34:07.354: E/SoundPool(160): error loading /system/media/audio/ui/Effect_Tick.ogg

10-11 13:34:07.354: E/SoundPool(160): error loading /system/media/audio/ui/Effect_Tick.ogg

10-11 13:34:07.354: E/SoundPool(160): error loading /system/media/audio/ui/KeypressStandard.ogg

10-11 13:34:07.354: E/SoundPool(160): error loading /system/media/audio/ui/KeypressSpacebar.ogg

10-11 13:34:07.354: E/SoundPool(160): error loading /system/media/audio/ui/KeypressDelete.ogg

10-11 13:34:07.354: E/SoundPool(160): error loading /system/media/audio/ui/KeypressReturn.ogg

10-11 13:34:08.184: E/Trace(354): error opening trace file: No such file or directory (2)

10-11 13:34:11.624: E/Trace(382): error opening trace file: No such file or directory (2)

10-11 13:34:12.934: E/Trace(398): error opening trace file: No such file or directory (2)

10-11 13:34:15.764: E/Trace(417): error opening trace file: No such file or directory (2)

10-11 13:34:18.725: E/Trace(444): error opening trace file: No such file or directory (2)

10-11 13:34:20.955: E/Trace(464): error opening trace file: No such file or directory (2)

10-11 13:34:21.955: E/Trace(491): error opening trace file: No such file or directory (2)

10-11 13:34:22.885: E/Trace(508): error opening trace file: No such file or directory (2)

10-11 13:34:24.985: E/StrictMode(337): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.

10-11 13:34:24.985: E/StrictMode(337): java.lang.Throwable: Explicit termination method 'close' not called

10-11 13:34:24.985: E/StrictMode(337): at dalvik.system.CloseGuard.open(CloseGuard.java:184)

10-11 13:34:24.985: E/StrictMode(337): at android.database.CursorWindow.<init>(CursorWindow.java:137)

10-11 13:34:24.985: E/StrictMode(337): at android.database.CursorWindow.<init>(CursorWindow.java:41)

10-11 13:34:24.985: E/StrictMode(337): at android.database.CursorWindow$1.createFromParcel(CursorWindow.java:681)

10-11 13:34:24.985: E/StrictMode(337): at android.database.CursorWindow$1.createFromParcel(CursorWindow.java:679)

10-11 13:34:24.985: E/StrictMode(337): at android.database.BulkCursorDescriptor.readFromParcel(BulkCursorDescriptor.java:75)

10-11 13:34:24.985: E/StrictMode(337): at android.database.BulkCursorDescriptor$1.createFromParcel(BulkCursorDescriptor.java:34)

10-11 13:34:24.985: E/StrictMode(337): at android.database.BulkCursorDescriptor$1.createFromParcel(BulkCursorDescriptor.java:30)

10-11 13:34:24.985: E/StrictMode(337): at android.content.ContentProviderProxy.query(ContentProviderNative.java:369)

10-11 13:34:24.985: E/StrictMode(337): at android.content.ContentResolver.query(ContentResolver.java:370)

10-11 13:34:24.985: E/StrictMode(337): at android.content.CursorLoader.loadInBackground(CursorLoader.java:65)

10-11 13:34:24.985: E/StrictMode(337): at android.content.CursorLoader.loadInBackground(CursorLoader.java:43)

10-11 13:34:24.985: E/StrictMode(337): at android.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:301)

10-11 13:34:24.985: E/StrictMode(337): at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:68)

10-11 13:34:24.985: E/StrictMode(337): at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:56)

10-11 13:34:24.985: E/StrictMode(337): at android.os.AsyncTask$2.call(AsyncTask.java:287)

10-11 13:34:24.985: E/StrictMode(337): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)

10-11 13:34:24.985: E/StrictMode(337): at java.util.concurrent.FutureTask.run(FutureTask.java:137)

10-11 13:34:24.985: E/StrictMode(337): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)

10-11 13:34:24.985: E/StrictMode(337): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)

10-11 13:34:24.985: E/StrictMode(337): at java.lang.Thread.run(Thread.java:856)

10-11 13:34:25.035: E/StrictMode(337): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.

10-11 13:34:25.035: E/StrictMode(337): java.lang.Throwable: Explicit termination method 'close' not called

10-11 13:34:25.035: E/StrictMode(337): at dalvik.system.CloseGuard.open(CloseGuard.java:184)

10-11 13:34:25.035: E/StrictMode(337): at android.content.ContentResolver$CursorWrapperInner.<init>(ContentResolver.java:1835)

10-11 13:34:25.035: E/StrictMode(337): at android.content.ContentResolver.query(ContentResolver.java:392)

10-11 13:34:25.035: E/StrictMode(337): at android.content.CursorLoader.loadInBackground(CursorLoader.java:65)

10-11 13:34:25.035: E/StrictMode(337): at android.content.CursorLoader.loadInBackground(CursorLoader.java:43)

10-11 13:34:25.035: E/StrictMode(337): at android.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:301)

10-11 13:34:25.035: E/StrictMode(337): at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:68)

10-11 13:34:25.035: E/StrictMode(337): at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:56)

10-11 13:34:25.035: E/StrictMode(337): at android.os.AsyncTask$2.call(AsyncTask.java:287)

10-11 13:34:25.035: E/StrictMode(337): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)

10-11 13:34:25.035: E/StrictMode(337): at java.util.concurrent.FutureTask.run(FutureTask.java:137)

10-11 13:34:25.035: E/StrictMode(337): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)

10-11 13:34:25.035: E/StrictMode(337): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)

10-11 13:34:25.035: E/StrictMode(337): at java.lang.Thread.run(Thread.java:856)

10-11 13:34:37.924: E/Trace(560): error opening trace file: No such file or directory (2)

10-11 13:34:42.064: E/Trace(576): error opening trace file: No such file or directory (2)

10-11 13:34:45.795: E/Trace(606): error opening trace file: No such file or directory (2)

10-11 13:34:46.215: E/AndroidRuntime(606): FATAL EXCEPTION: main

10-11 13:34:46.215: E/AndroidRuntime(606): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.imooc.musicguess/com.imooc.musicguess.MainActivity}: java.lang.ClassNotFoundException: com.imooc.musicguess.MainActivity

10-11 13:34:46.215: E/AndroidRuntime(606): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1983)

10-11 13:34:46.215: E/AndroidRuntime(606): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)

10-11 13:34:46.215: E/AndroidRuntime(606): at android.app.ActivityThread.access$600(ActivityThread.java:130)

10-11 13:34:46.215: E/AndroidRuntime(606): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)

10-11 13:34:46.215: E/AndroidRuntime(606): at android.os.Handler.dispatchMessage(Handler.java:99)

10-11 13:34:46.215: E/AndroidRuntime(606): at android.os.Looper.loop(Looper.java:137)

10-11 13:34:46.215: E/AndroidRuntime(606): at android.app.ActivityThread.main(ActivityThread.java:4745)

10-11 13:34:46.215: E/AndroidRuntime(606): at java.lang.reflect.Method.invokeNative(Native Method)

10-11 13:34:46.215: E/AndroidRuntime(606): at java.lang.reflect.Method.invoke(Method.java:511)

10-11 13:34:46.215: E/AndroidRuntime(606): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)

10-11 13:34:46.215: E/AndroidRuntime(606): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)

10-11 13:34:46.215: E/AndroidRuntime(606): at dalvik.system.NativeStart.main(Native Method)

10-11 13:34:46.215: E/AndroidRuntime(606): Caused by: java.lang.ClassNotFoundException: com.imooc.musicguess.MainActivity

10-11 13:34:46.215: E/AndroidRuntime(606): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)

10-11 13:34:46.215: E/AndroidRuntime(606): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)

10-11 13:34:46.215: E/AndroidRuntime(606): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)

10-11 13:34:46.215: E/AndroidRuntime(606): at android.app.Instrumentation.newActivity(Instrumentation.java:1053)

10-11 13:34:46.215: E/AndroidRuntime(606): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1974)

10-11 13:34:46.215: E/AndroidRuntime(606): ... 11 more

: E/(): Device disconnected: 1

: E/(): Device disconnected


正在回答

3 回答

怎么解决的,遇到同样的问题了,请大神指点.安卓菜鸟

0 回复 有任何疑惑可以回复我~

E/SoundPool(160): error loading /system/media/audio/ui/KeypressStandard.ogg

怎么解决的


0 回复 有任何疑惑可以回复我~

已经解决,有个文件忘记了修改对应的代码~!

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
Android猜歌游戏是这样炼成的
  • 参与学习       27735    人
  • 解答问题       422    个

手把手教你完成一款猜歌类游戏,向你展示游戏实现的全部细节

进入课程
意见反馈 帮助中心 APP下载
官方微信