[問題] The process android.process.media has stopped ...

看板AndroidDev作者 (阿良)時間13年前 (2011/06/23 14:26), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
開發層: (應用/框架/庫/核心) 框架 問題: 開機時有時會一直跳出The process android.process.media has stopped unexceptedly視窗 關閉後會繼續跳出個三到五次 輸入: 預期輸出: 不跳出此視窗 錯誤輸出: 01-02 09:39:19.296: INFO/ActivityManager(487): Start proc android.process.media for broadcast com.android.providers.downloads /.DownloadReceiver: pid=668 uid=10000 gids={1015, 2001, 3003} ... 01-02 09:39:21.515: ERROR/AndroidRuntime(668): FATAL EXCEPTION: Download Service 01-02 09:39:21.515: ERROR/AndroidRuntime(668): java.lang.NoSuchMethodError: getDownloadCacheDirectory 01-02 09:39:21.515: ERROR/AndroidRuntime(668): at com.android.providers. downloads.DownloadService.removeSpuriousFiles(DownloadService.java:425) ... 01-02 09:42:52.679: INFO/Process(668): Sending signal. PID: 668 SIG: 9 01-02 09:42:52.695: INFO/ActivityManager(487): Process android.process.media (pid 668) has died. 01-02 09:42:52.695: WARN/ActivityManager(487): Scheduling restart of crashed service com.android.providers.downloads/.DownloadService 下面出現重複的錯誤 補充說明: 1. 此問題不一定每次發生 2. 查了一下DownloadService.java的UpdateThread.run 發現呼叫removeSpuriousFiles中的Environment.getDownloadCacheDirectory() .listFiles()發生java.lang.NoSuchMethodError 3. Environment.java的getDownloadCacheDirectory是抓cache的folder 為啥會發生此種錯誤,是否有權限問題 謝謝!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 113.196.128.238
文章代碼(AID): #1E0jnyMl (AndroidDev)
文章代碼(AID): #1E0jnyMl (AndroidDev)