收藏
回答

安卓手机拉起小程序六七个测试机都没问题,唯独在一台手机上拉不起来?华为nova9,以下提供报错日志

WXLaunchMiniProgram.Req req = new WXLaunchMiniProgram.Req ();

req.userName = "gh_d37f2efc127a"

req.miniprogramType = WXLaunchMiniProgram.Req.MINIPTOGRAM_TYPE_RELEASE

 api.sendReq (req);

appid是wx18b4651d0339e0e9,,,包名是com.newup.dalian.mobile.iap,

看控制台有如下报错日志

2025-07-18 16:52:51.915  1813-8160  TrustSpace...gerService system_server                        D  check Intent, type: provider callerPid:10655 callerUid:10977 callerPackage: com.newup.dalian.mobile.iap callerLevel=0 userId:0 calleePackage: com.tencent.mm calleeLevel=1

2025-07-18 16:52:51.929  1813-8160  ActivityTaskManager     system_server                        W  activity start fail: Background activity start [callingPackage: com.tencent.mm; callingUid: 10814; appSwitchAllowed: true; isCallingUidForeground: true; callingUidHasAnyVisibleWindow: false; callingUidProcState: BOUND_TOP; isCallingUidPersistentSystemProcess: false; realCallingUid: 10814; realCallingPkgName: null; isRealCallingUidForeground: true; realCallingUidHasAnyVisibleWindow: false; realCallingUidProcState: BOUND_TOP; isRealCallingUidPersistentSystemProcess: false; originatingPendingIntent: PendingIntentRecord{c146ee7 com.tencent.mm startActivity}; allowBackgroundActivityStart: false; intent: Intent { dat=weixin://dl/jumpWxa/?appid=wx18b4651d0339e0e9&userName=gh_d37f2efc127a@app&path=&invokeData=&pathType=0&runtimeAppid=&runtimeTicket=&runtimeSessionId= flg=0x10000000 hwFlg=0x100 cmp=com.tencent.mm/.plugin.base.stub.WXBizEntryActivity (has extras) }; callerApp: ProcessRecord{15bc2b9 25799:com.tencent.mm/u0a814}; inVisibleTask: false; shouldAbortSelfLaunchWhenReturnHome: false]

2025-07-18 16:52:51.929  1813-8160  HwMWPM                  system_server                        D  activityInfo: ActivityInfo{738e737 com.tencent.mm.plugin.base.stub.WXBizEntryActivity}, intent: Intent { dat=weixin://dl/jumpWxa/?appid=wx18b4651d0339e0e9&userName=gh_d37f2efc127a@app&path=&invokeData=&pathType=0&runtimeAppid=&runtimeTicket=&runtimeSessionId= flg=0x10000000 hwFlg=0x100 cmp=com.tencent.mm/.plugin.base.stub.WXBizEntryActivity (has extras) }, options: ActivityOptions(87516324), mPackageName=null, mAnimationType=-1, mStartX=0, mStartY=0, mWidth=0, mHeight=0, callingPackage: com.tencent.mm, isStartToSplit: false

2025-07-18 16:52:51.935  6736-7324  PG_ash                  com.huawei.iaware                    I  nap package: com.tencent.mm, visible: false, bgTime: 435699, scrOff: false

2025-07-18 16:52:51.937  6736-7324  PG_ash                  com.huawei.iaware                    I  running package: com.tencent.mm, visible: false

2025-07-18 16:52:52.941  6736-7324  PG_ash                  com.huawei.iaware                    I  nap package: com.tencent.mm, visible: false, bgTime: 436705, scrOff: false

回答关注问题邀请回答
收藏
登录 后发表内容