打包之后,使用会报错:
callModuleMethod >>> invoke module:WCDB, method:testInsertUsers failed. java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.taobao.weex.bridge.MethodInvoker.invoke(Unknown Source:2)
at com.taobao.weex.bridge.NativeInvokeHelper.invoke(Unknown Source:134)
at com.taobao.weex.bridge.WXModuleManager.dispatchCallModuleMethod(Unknown Source:10)
at com.taobao.weex.bridge.WXModuleManager.callModuleMethod(Unknown Source:111)
at com.taobao.weex.bridge.WXBridgeManager.callModuleMethod(Unknown Source:85)
at com.taobao.weex.bridge.WXBridgeManager.callNativeModule(Unknown Source:89)
at com.taobao.weex.bridge.WXBridge.callNativeModule(Unknown Source:183)
at com.taobao.weex.base.SystemMessageHandler.nativeRunWork(Native Method)
at com.taobao.weex.base.SystemMessageHandler.handleMessage(Unknown Source:2)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:211)
at android.os.Looper.loop(Looper.java:300)
at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/tencent/wcdb/core/Database;
at cn.com.bjprdhd.wcdb.WCDBModule.testInsertUsers(WCDBModule.java:132)
at java.lang.reflect.Method.invoke(Native Method)
at com.taobao.weex.bridge.MethodInvoker.invoke(Unknown Source:2)
at com.taobao.weex.bridge.NativeInvokeHelper.invoke(Unknown Source:134)
at com.taobao.weex.bridge.WXModuleManager.dispatchCallModuleMethod(Unknown Source:10)
at com.taobao.weex.bridge.WXModuleManager.callModuleMethod(Unknown Source:111)
at com.taobao.weex.bridge.WXBridgeManager.callModuleMethod(Unknown Source:85)
at com.taobao.weex.bridge.WXBridgeManager.callNativeModule(Unknown Source:89)
at com.taobao.weex.bridge.WXBridge.callNativeModule(Unknown Source:183)
at com.taobao.weex.base.SystemMessageHandler.nativeRunWork(Native Method)
at com.taobao.weex.base.SystemMessageHandler.handleMessage(Unknown Source:2)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:211)
at android.os.Looper.loop(Looper.java:300)
at android.os.HandlerThread.run(HandlerThread.java:67)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.tencent.wcdb.core.Database" on path: DexPathList[[dex file "InMemoryDexFile[cookie=[0, -5476376631492974784]]", zip file "/data/app/~~3nYa-yaAau3070NTPnRgjA==/cn.com.bjprdhd.iot.GpZYJdrqETBAL5fBkS7Q==/base.apk"],nativeLibraryDirectories=[/data/app/~~3nYa-yaAau3070NTPnRgjA==/cn.com.bjprdhd.iot.GpZYJdrqETBAL5fBkS7Q==/lib/arm64, /data/app/~~3nYa-yaAau3070NTPnRgjA==/cn.com.bjprdhd.iot.GpZYJdrqETBAL5fBkS7Q==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
0 个回复