[LayaNative 2.0]android-APK更新下载完包体之后闪退
android-APK更新下载完包体之后闪退,以下为报错内容:(android包过大上传不了);IDE 2.6.0 ,Native 2.6.1,android studio 3.6.0
2020-06-13 10:25:46.009 16276-16276/com.baitan.game E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.baitan.game, PID: 16276
android.os.FileUriExposedException: file:///mnt/sdcard/autoupdate.apk exposed beyond app through Intent.getData()
at android.os.StrictMode.onFileUriExposed(StrictMode.java:1796)
at android.net.Uri.checkFileUriExposed(Uri.java:2354)
at android.content.Intent.prepareToLeaveProcess(Intent.java:9067)
at android.content.Intent.prepareToLeaveProcess(Intent.java:9028)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1525)
at android.app.Activity.startActivityForResult(Activity.java:4405)
at android.app.Activity.startActivityForResult(Activity.java:4363)
at android.app.Activity.startActivity(Activity.java:4702)
at android.app.Activity.startActivity(Activity.java:4670)
at layaair.autoupdateversion.AutoUpdateAPK.updateAPK(AutoUpdateAPK.java:128)
at layaair.autoupdateversion.UpdateCallback.downloadCompleted(UpdateCallback.java:36)
at layaair.autoupdateversion.AutoUpdateAPK$UpdateHandle.handleMessage(AutoUpdateAPK.java:101)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6211)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:793)
2020-06-13 10:25:46.009 16276-16276/com.baitan.game E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.baitan.game, PID: 16276
android.os.FileUriExposedException: file:///mnt/sdcard/autoupdate.apk exposed beyond app through Intent.getData()
at android.os.StrictMode.onFileUriExposed(StrictMode.java:1796)
at android.net.Uri.checkFileUriExposed(Uri.java:2354)
at android.content.Intent.prepareToLeaveProcess(Intent.java:9067)
at android.content.Intent.prepareToLeaveProcess(Intent.java:9028)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1525)
at android.app.Activity.startActivityForResult(Activity.java:4405)
at android.app.Activity.startActivityForResult(Activity.java:4363)
at android.app.Activity.startActivity(Activity.java:4702)
at android.app.Activity.startActivity(Activity.java:4670)
at layaair.autoupdateversion.AutoUpdateAPK.updateAPK(AutoUpdateAPK.java:128)
at layaair.autoupdateversion.UpdateCallback.downloadCompleted(UpdateCallback.java:36)
at layaair.autoupdateversion.AutoUpdateAPK$UpdateHandle.handleMessage(AutoUpdateAPK.java:101)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6211)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:793)
没有找到相关结果
已邀请:
2 个回复
打点酱油
赞同来自:
maomao
赞同来自: