根據上圖所示,我們知道leaked是泄露的意思,WindowLeaked應該就是窗體泄露,此異常是我們在顯示對話框時承載它的Activity被finish掉所導致的。所以我們在使用對話框時要先將對話框關閉再將Acivity銷燬掉。這樣就不會報上述錯誤了,哈哈!
Android 分析android.view.WindowLeaked錯誤
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
Android 解決java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState異常
smallmarker
2020-06-16 13:53:57
Android 使用Glide 報You cannot start a load for a destroyed activity異常
smallmarker
2020-06-16 13:53:57
Android 分析android.view.WindowManager$BadTokenException: Unable to add window異常
萌动小彩笔
2020-02-26 01:58:29
Android Manifest merger failed with multiple errors,see logs
萌动小彩笔
2020-02-26 01:58:28
Android java.lang.IllegalArgumentException: Unterminated quote
萌动小彩笔
2020-02-26 01:58:28
Android Unable to delete file/directory 錯誤
萌动小彩笔
2020-02-26 01:58:28
Android app:transformNativeLibsWithStripDebugSymbolForDebug錯誤分析
萌动小彩笔
2020-02-26 01:58:28
Android異常優化之內存泄露實例與及部分解決方案
lwqldsyzx
2020-06-19 19:20:25
Android異常優化之內存泄露實例與及解決方案
lwqldsyzx
2020-04-14 20:26:50
Android Lint task執行失敗
萌动小彩笔
2020-02-26 01:58:28
adb server is out of date.killing的解決辦法
奔跑的平头哥
2020-02-24 17:49:25
Android 解決java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState異常
smallmarker
2020-06-16 13:53:57
Android 使用Glide 報You cannot start a load for a destroyed activity異常
smallmarker
2020-06-16 13:53:57
Android異常優化之內存泄露實例與及部分解決方案
lwqldsyzx
2020-06-19 19:20:25
Android異常優化之內存泄露實例與及解決方案
lwqldsyzx
2020-04-14 20:26:50