这几个在做新项目对接微信小程序硬件框架,在微信终端合作平台上进行了所有的申请步骤。现在测试启动小程序报错errType: 2, errCode: -1, errMsg: UNKNOWN。相关xlog日志已经发”小程序VoIP安卓设备沟通群“,xlog文件名:xlog-G12JHONGTU000001.rar
其他相关信息如下:
调用WMPFMiniProgramApi.launchMiniProgram 时间点:10月31日 17:59:21
args[1] = 初始化参数
args[2] = WMPFDevice{hostAppId='wxae1b6c41dc8eefe1', productId=7354, keyVersion=1, deviceId='G12JHONGTU000001', signature='MEYCIQDtqVV7q9JmKaZkpIkgmbGZ8+RSLTYElaL1Df180MxVbAIhAIIi/Dc0uHJf\nkAy+3+1cSCfPvJrrJy+Y1oNlFskJ8+1z\n', features=[], signatureTimestamp=0, authType=0}
args[1] = 启动小程序参数
args[2] = WMPFStartAppParams{appId='wxdc5851726ff46b21', path='', appType=APP_TYPE_RELEASE}
logcat中看到如下:
17:59:21.294 WMPFC...oker I invokeSync >>>> request [IS_DEVICE_ACTIVATED] [AbstractWMPFSyncInvokeRequest{clientVersion=0, clientApplicationId='null', clientInvokeToken='null', invokeTimestamp=-1, clientProcessName='null'}] rId [3]
17:59:21.296 IPC.I...ager I [getIPCBridge] tid=[50] com.htjy.device.learning_machine -> com.tencent.wmpf
17:59:21.298 IPC.I...ager I [getIPCBridge] bw:192996485, id:10486949237853, process:com.tencent.wmpf pingBinder:true
17:59:21.299 IPC.O...cler I addIntoSet(com.tencent.wmpf)
17:59:21.300 IPC.I...pper I keep ref of callback(16988639)
17:59:21.309 WMPFC...oker I invokeSync <<<< response [WMPFIsDeviceActivatedResponse{isActivated=false}] rId [3]
17:59:21.310 WMPFC...oker I invokeSync >>>> request [ACTIVATE_DEVICE] [AbstractWMPFSyncInvokeRequest{clientVersion=0, clientApplicationId='null', clientInvokeToken='null', invokeTimestamp=-1, clientProcessName='null'}WMPFActivateDeviceSyncRequest{wmpfDevice=WMPFDevice{hostAppId='wxae1b6c41dc8eefe1', productId=7354, keyVersion=1, deviceId='G12JHONGTU000001', signature='MEYCIQDtqVV7q9JmKaZkpIkgmbGZ8+RSLTYElaL1Df180MxVbAIhAIIi/Dc0uHJf\nkAy+3+1cSCfPvJrrJy+Y1oNlFskJ8+1z\n', features=[], signatureTimestamp=0, authType=0}}] rId [4]
17:59:21.312 IPC.I...ager I [getIPCBridge] tid=[52] com.htjy.device.learning_machine -> com.tencent.wmpf
17:59:21.314 IPC.I...ager I [getIPCBridge] bw:192996485, id:10486966188007, process:com.tencent.wmpf pingBinder:true
17:59:21.315 IPC.O...cler I addIntoSet(com.tencent.wmpf)
17:59:21.315 IPC.I...pper I keep ref of callback(203225333)
17:59:21.431 WMPFC...oker I invokeSync <<<< response [WMPFActivateDeviceSyncResponse{invokeToken=''}] rId [4]
17:59:21.433 WMPFC...vice I activate device(WMPFDevice{hostAppId='wxae1b6c41dc8eefe1', productId=7354, keyVersion=1, deviceId='G12JHONGTU000001', signature='MEYCIQDtqVV7q9JmKaZkpIkgmbGZ8+RSLTYElaL1Df180MxVbAIhAIIi/Dc0uHJf\nkAy+3+1cSCfPvJrrJy+Y1oNlFskJ8+1z\n', features=[], signatureTimestamp=0, authType=0}) failed, please check your device info. reason=(-1,UNKNOWN)
17:59:21.434 WMPFC...vice I clear invoke token
17:59:21.436 MainActivity E
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ io-pool-2-thread-1, com.htjy.device.learning_machine.MainActivity$startWmpf$1.doInBackground(MainActivity.kt:148)
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ args[0] = MainActivity
│ args[1] = errType: 2, errCode: -1, errMsg: UNKNOWN
相关申请也已经完成
已经进行硬件注册了:
小程序也绑定了:
代码:
麻烦帮忙看看是什么原因?
是 activeDevice 时报的错,请仔细检查激活信息,或者用其它已经可用的激活信息试试。每次换激活信息时,请清除wmpf缓存。