应用内自动升级,下载安装包后抛出异常,先贴个错误
错误信息
Log:
android.os.FileUriExposedException: file:///storage/emulated/0/aiyou.apk exposed beyond app through Intent.getData()
问题分析:
1.版本不支持
修改platforms>android中的AndroidManifest.xml
If you have an app that shares files with other apps using a Uri, you may have encountered this error on API 24+.
2.权限问题
同样修改AndroidManifest.xml文件,添加