浮现场景:随便一个小程序调用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)
你好,现在安卓客户端版本应该是3.1.12版本,看下更新到最新版本试下
在worker内不能单独使用typeof xxx
后面必须跟等号