f***@163.com
f***@163.com
  • 发布:2023-04-25 11:46
  • 更新:2023-04-25 11:46
  • 阅读:234

自己打包了一个原生插件,但是调用插件中的方法的时候报错,那位大佬帮忙看看,万分感谢

分类:uni-app

{
"err": {
"message": "io.dcloud.PandoraEntryActivity cannot be cast to android.app.Application",
"suppressed": [],
"stackTrace": [
{
"lineNumber": 25,
"nativeMethod": false,
"className": "com.zyh.wlhy.WlhyContainer",
"methodName": "init",
"fileName": "WlhyContainer.java"
},
{
"lineNumber": -2,
"nativeMethod": true,
"className": "java.lang.reflect.Method",
"methodName": "invoke",
"fileName": "Method.java"
},
{
"lineNumber": 46,
"nativeMethod": false,
"className": "com.taobao.weex.bridge.MethodInvoker",
"methodName": "invoke",
"fileName": "MethodInvoker.java"
},
{
"lineNumber": 79,
"nativeMethod": false,
"className": "com.taobao.weex.bridge.NativeInvokeHelper$2",
"methodName": "run",
"fileName": "NativeInvokeHelper.java"
},
{
"lineNumber": 71,
"nativeMethod": false,
"className": "com.taobao.weex.common.WXThread$SafeRunnable",
"methodName": "run",
"fileName": "WXThread.java"
},
{
"lineNumber": 900,
"nativeMethod": false,
"className": "android.os.Handler",
"methodName": "handleCallback",
"fileName": "Handler.java"
},
{
"lineNumber": 103,
"nativeMethod": false,
"className": "android.os.Handler",
"methodName": "dispatchMessage",
"fileName": "Handler.java"
},
{
"lineNumber": 219,
"nativeMethod": false,
"className": "android.os.Looper",
"methodName": "loop",
"fileName": "Looper.java"
},
{
"lineNumber": 8673,
"nativeMethod": false,
"className": "android.app.ActivityThread",
"methodName": "main",
"fileName": "ActivityThread.java"
},
{
"lineNumber": -2,
"nativeMethod": true,
"className": "java.lang.reflect.Method",
"methodName": "invoke",
"fileName": "Method.java"
},
{
"lineNumber": 513,
"nativeMethod": false,
"className": "com.android.internal.os.RuntimeInit$MethodAndArgsCaller",
"methodName": "run",
"fileName": "RuntimeInit.java"
},
{
"lineNumber": 1109,
"nativeMethod": false,
"className": "com.android.internal.os.ZygoteInit",
"methodName": "main",
"fileName": "ZygoteInit.java"
}
],
"localizedMessage": "io.dcloud.PandoraEntryActivity cannot be cast to android.app.Application"
}
}

2023-04-25 11:46 负责人:无 分享
已邀请:

要回复问题请先登录注册