DCloud 5+应用之plus.runtime.install无响应


一、问题描述

DCloud 5+应用调用 plus.runtime.install 无响应。

二、解决方法

HBuilder2.6.3+ 开始 GooglePlay 渠道默认不再添加以下权限,因为 GooglePlay 审核规则禁止应用下载 apk 更新,必须通过上传 GooglePlay 审核更新:

<uses-permission android:name="android.permission.INSTALL_PACKAGES"
    tools:ignore="ProtectedPermissions" />
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />

在 AndroidManifest.xml 中添加以上权限后问题解决。

猜你喜欢

转载自blog.csdn.net/u012069313/article/details/127428495