使用库版本 com.tencent.mm.opensdk:wechat-sdk-android-with-mta:5.1.4
Android12调起小程序抛异常Permission Denial?微信SDK调起小程序抛出异常导致我们app崩溃 Permission Denial: reading com.tencent.mm.plugin.base.stub.WXCommProvider uri content://com.tencent.mm.sdk.comm.provider/launchWXMiniprogram from pid=26275, uid=10290 requires null, or grantUriPermission() 代码,怎么修改才能获得权限呢 WXLaunchMiniProgram.Req req = new WXLaunchMiniProgram.Req(); req.userName = miniId; // 填小程序原始id req.path = miniPath; ////拉起小程序页面的可带参路径,不填默认拉起小程序首页,对于小游戏,可以只传入 query 部分,来实现传参效果,如:传入 "?foo=bar"。 req.miniprogramType = miniType;// 可选打开 开发版,体验版和正式版 sWXApi.sendReq(req);
2022-03-16使用库版本 com.tencent.mm.opensdk:wechat-sdk-android-with-mta:5.1.4
Android调起微信小程序崩溃?java.lang.SecurityException Permission Denial: reading com.tencent.mm.plugin.base.stub.WXCommProvider uri content://com.tencent.mm.sdk.comm.provider/launchWXMiniprogram from pid=26275, uid=10290 requires null, or grantUriPermission() 调用代码 WXLaunchMiniProgram.Req req = new WXLaunchMiniProgram.Req(); req.userName = miniId; req.path = miniPath; req.miniprogramType = miniType; sWXApi.sendReq(req);
2022-03-16我也遇到该问题了,Android12通过微信SDK调起微信小程序会出现,需要什么权限呢? 这样么 activity.grantUriPermission("app包名", Uri.parse("content://com.tencent.mm.sdk.comm.provider/launchWXMiniprogram"), Intent.FLAG_GRANT_READ_URI_PERMISSION);
app启动小程序 报错Permission Denial请问这个是需要要求什么权限?如何修改? java.lang.SecurityException: Permission Denial: reading com.tencent.mm.plugin.base.stub.WXCommProvider uri content://com.tencent.mm.sdk.comm.provider/launchWXMiniprogram from pid=31336, uid=10499 requires null, or grantUriPermission() at android.os.Parcel.createExceptionOrNull(Parcel.java:2441) at android.os.Parcel.createException(Parcel.java:2425) at android.os.Parcel.readException(Parcel.java:2408) at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:190) at android.database.DatabaseUtils.readExceptionFromParcel.java:142) at android.content.ContentProviderProxy.query(ContentProviderNative.java:481) at android.content.ContentResolver.query(ContentResolver.java:1237) at android.content.ContentResolver.query(ContentResolver.java:1162) at android.content.ContentResolver.query(ContentResolver.java:1118) at com.tencent.mm.opensdk.openapi.BaseWXApiImplV10.sendLaunchWXMiniprogram(Unknown Source:69) at com.tencent.mm.opensdk.openapi.BaseWXApiImplV10.sendReq(Unknown Source:369)
2022-03-15