咱们在编写下载安装功能的时候,基本都是经过Intent隐式安装APK的方法。若是出现安装包下载完调用隐式Intent安装失败的状况,则是由于:android
在Android 8.0以上版本,新增了对Intent隐式安装APK的安全管理,须要在mainfist中添加权限安全
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/>复制代码