MZCretin / AutoUpdateProject

App 内部更新 提供12种更新的样式 支持Android全系统版本 支持自定义UI 断点续传
1.07k stars 225 forks source link

出现一个问题了 #11

Closed liu1070832898 closed 5 years ago

liu1070832898 commented 6 years ago

android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@4fe3219 is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:782) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:378) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:114) at android.app.Dialog.show(Dialog.java:440) at android.support.v7.app.AlertDialog$Builder.show(AlertDialog.java:958) at com.cretin.www.cretinautoupdatelibrary.utils.CretinAutoUpdateUtils.showUpdateDialog(CretinAutoUpdateUtils.java:389) at com.cretin.www.cretinautoupdatelibrary.utils.CretinAutoUpdateUtils.access$1200(CretinAutoUpdateUtils.java:57) at com.cretin.www.cretinautoupdatelibrary.utils.CretinAutoUpdateUtils$DownDataAsyncTask.onPostExecute(CretinAutoUpdateUtils.java:296) at com.cretin.www.cretinautoupdatelibrary.utils.CretinAutoUpdateUtils$DownDataAsyncTask.onPostExecute(CretinAutoUpdateUtils.java:191) at android.os.AsyncTask.finish(AsyncTask.java:692) at android.os.AsyncTask.-wrap1(AsyncTask.java) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:709) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:156) at android.app.ActivityThread.main(ActivityThread.java:6577) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)

MZCretin commented 6 years ago

这个问题你这边可以自行解决