开发uniapp原生插件时,在依赖的library里的activity有依赖第三方SDK时,在打包自定义基座时logcat中抛出异常:
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/ar/arcall/ARCallEvent;
at java.lang.Class.newInstance(Native Method)
at android.app.Instrumentation.newActivity(Instrumentation.java:1174)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2669)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: java.lang.ClassNotFoundException: Didn't find class "org.ar.arcall.ARCallEvent" on path: DexPathList[[zip file "/data/app/io.dcloud.UNICFFB4F8-0FXeMyqJGtXpDrWrH6akfw==/base.apk"],nativeLibraryDirectories=[/data/app/io.dcloud.UNICFFB4F8-0FXeMyqJGtXpDrWrH6akfw==/lib/x86, /data/app/io.dcloud.UNICFFB4F8-0FXeMyqJGtXpDrWrH6akfw==/base.apk!/lib/x86, /system/lib, /vendor/lib]]
我已经在android library的dependencies里写了依赖关系,在编译时如果在package.json里同样写dependencies打包就会报错,这里该怎么做,社区好像没有相关的文章。