收藏
回答

企业微信小程序调用wx.createWorker失败导致小程序闪退

问题类型 API/组件名称 终端类型 微信版本 基础库版本
Bug wx.createWorker 微信安卓客户端 3.0.25 (13066) 2.10.1 (2020.1.17 23:32:23)

浮现场景:随便一个小程序调用wx.createWorker() 都会导致小程序闪退

发送时间:2021-01-04 18:00 开始会有这个问题

错误日志如下:

02-04 00:04:19.156 I/art     ( 5499): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.tencent.mm.plugin.cloudvoip.cloudvoice.service.IOpenVoiceCallback" on path: DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/data/app/com.tencent.wework-1/base.apk"],nativeLibraryDirectories=[/data/app/com.tencent.wework-1/lib/arm, /data/app/com.tencent.wework-1/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
02-04 00:04:19.156 I/art     ( 5499):   at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
02-04 00:04:19.156 I/art     ( 5499):   at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
02-04 00:04:19.156 I/art     ( 5499):   at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
02-04 00:04:19.156 I/art     ( 5499):   at void com.tencent.mm.plugin.appbrand.jsapi.AppBrandJsApiPoolWC.initServicePool() (AppBrandJsApiPoolWC.java:739)
02-04 00:04:19.156 I/art     ( 5499):   at java.util.Map com.tencent.mm.plugin.appbrand.jsapi.AppBrandJsApiPoolWC.getServiceApiPool() (AppBrandJsApiPoolWC.java:1013)
02-04 00:04:19.156 I/art     ( 5499):   at void com.tencent.mm.plugin.appbrand.jsapi.AppBrandJsApiPool.initServicePool() (AppBrandJsApiPool.java:16)
02-04 00:04:19.156 I/art     ( 5499):   at java.util.Map com.tencent.mm.plugin.appbrand.jsapi.AppBrandJsApiPool.getServiceApiPool() (AppBrandJsApiPool.java:41)
02-04 00:04:19.156 I/art     ( 5499):   at java.util.Map com.tencent.mm.plugin.appbrand.service.AppBrandMiniProgramServiceLogicImpWC.onCreateJsApiPool() (AppBrandMiniProgramServiceLogicImpWC.java:160)
02-04 00:04:19.156 I/art     ( 5499):   at java.util.Map cvk.createJsApiPool() (AppBrandServiceLU.java:86)
02-04 00:04:19.156 I/art     ( 5499):   at void com.tencent.mm.plugin.appbrand.jsapi.AppBrandComponentImpl.installJsApis() (AppBrandComponentImpl.java:145)
02-04 00:04:19.156 I/art     ( 5499):   at void cvj.onPreload() (AppBrandMiniProgramServiceLogicImp.java:365)
02-04 00:04:19.156 I/art     ( 5499):   at void cvk.onPreload() (AppBrandServiceLU.java:205)
02-04 00:04:19.156 I/art     ( 5499):   at void com.tencent.mm.plugin.appbrand.AppBrandService.preload() (AppBrandService.java:60)
02-04 00:04:19.156 I/art     ( 5499):   at void com.tencent.mm.plugin.appbrand.AppBrandRuntimeBoostStrategy$8$2.run() (AppBrandRuntimeBoostStrategy.java:304)
02-04 00:04:19.156 I/art     ( 5499):   at java.lang.Object java.util.concurrent.Executors$RunnableAdapter.call() (Executors.java:428)
02-04 00:04:19.156 I/art     ( 5499):   at void java.util.concurrent.FutureTask.run() (FutureTask.java:237)
02-04 00:04:19.156 I/art     ( 5499):   at void com.tencent.mm.sdk.thread.runnable.FutureRunnable.run() (FutureRunnable.java:73)
02-04 00:04:19.156 I/art     ( 5499):   at void com.tencent.mm.sdk.thread.executor.HandlerThreadPoolExecutor.runWorker(com.tencent.mm.sdk.thread.executor.HandlerThreadPoolExecutor$Worker) (HandlerThreadPoolExecutor.java:614)
02-04 00:04:19.156 I/art     ( 5499):   at void com.tencent.mm.sdk.thread.executor.HandlerThreadPoolExecutor$Worker.run() (HandlerThreadPoolExecutor.java:525)
02-04 00:04:19.156 I/art     ( 5499):   at void android.os.Handler.handleCallback(android.os.Message) (Handler.java:751)
02-04 00:04:19.156 I/art     ( 5499):   at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:95)
02-04 00:04:19.156 I/art     ( 5499):   at void android.os.Looper.loop() (Looper.java:154)
02-04 00:04:19.156 I/art     ( 5499):   at void android.os.HandlerThread.run() (HandlerThread.java:61)
02-04 00:04:19.156 I/art     ( 5499):   at void com.tencent.mm.sdk.thread.factory.GlobalThreadFactory$1$3.run() (GlobalThreadFactory.java:61)
最后一次编辑于  2021-02-04
回答关注问题邀请回答
收藏

2 个回答

  • 企业微信运营专员-千夜
    企业微信运营专员-千夜
    2021-02-05

    你好,现在安卓客户端版本应该是3.1.12版本,看下更新到最新版本试下

    2021-02-05
    有用
    回复
  • 沛林
    沛林
    2021-03-24

    在worker内不能单独使用typeof xxx

    后面必须跟等号

    2021-03-24
    有用
    回复
登录 后发表内容
问题标签