kkevsekk1 / AutoX

A UiAutomator on android, does not need root access(安卓平台上的JavaScript自动化工具)
Other
8.07k stars 1.9k forks source link

安卓15出现报错No implementation found for long org.opencv.core.Mat.n_Mat() #1296

Open javasopp opened 2 days ago

javasopp commented 2 days ago
  1. Autox.js 版本:705
  2. Autox.js 下载渠道:https://github.com/kkevsekk1/AutoX/releases
  3. Android 版本:Android 15
  4. Android 机型:小米14pro
  5. Android 系统类别:澎湃OS2.0
  6. VSCODE 扩展版本 Auto.js-Autox.js-VSCodeExt (可选,如果是连接电脑的问题需要填):
  7. 问题描述: vscode调试正常,但是单独打包运行出现报错,一旦运行程序(当运行images.findImage()这里,就立刻崩溃。
  8. 报错日志(可选):
    `设备信息: App version: 7.0.5 App version code: 705 Android build version: OS2.0.6.0.VNBCNXM Android release version: 15 Android SDK version: 35 Android build ID: AQ3A.240627.003 Device brand: Xiaomi Device manufacturer: Xiaomi Device name: shennong Device model: 23116PN5BC Device product name: shennong Device hardware name: qcom ABIs: [arm64-v8a] ABIs (32bit): [] ABIs (64bit): [arm64-v8a]

错误信息: No implementation found for long org.opencv.core.Mat.n_Mat() (tried Java_org_opencv_core_Mat_n_1Mat and Java_org_opencv_core_Mat_n_1Mat__) - is the library loaded, e.g. System.loadLibrary? java.lang.UnsatisfiedLinkError: No implementation found for long org.opencv.core.Mat.n_Mat() (tried Java_org_opencv_core_Mat_n_1Mat and Java_org_opencv_core_Mat_n_1Mat__) - is the library loaded, e.g. System.loadLibrary? at org.opencv.core.Mat.n_Mat(Native Method) at org.opencv.core.Mat.(Mat.java:23) at com.stardust.autojs.core.opencv.Mat.(Mat.java:37) at com.stardust.autojs.core.image.ImageWrapper.getMat(ImageWrapper.java:104) at com.stardust.autojs.runtime.api.Images.findImage(Images.kt:197) at java.lang.reflect.Method.invoke(Native Method) at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:206) at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:211) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1879) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1061) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:90) at org.mozilla.javascript.BoundFunction.call(BoundFunction.java:53) at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1879) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:1061) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:90) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:380) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3869) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:88) at org.mozilla.javascript.ArrowFunction.call(ArrowFunction.java:43) at com.stardust.autojs.runtime.ScriptBridges$callFunction$1.invoke(ScriptBridges.kt:42) at com.stardust.autojs.runtime.ScriptBridges$callFunction$1.invoke(ScriptBridges.kt:37) at com.stardust.autojs.runtime.ScriptBridges.useJsContext(ScriptBridges.kt:31) at com.stardust.autojs.runtime.ScriptBridges.callFunction(ScriptBridges.kt:37) at com.stardust.autojs.core.eventloop.EventEmitter$Listeners.emit(EventEmitter.java:59) at com.stardust.autojs.core.eventloop.EventEmitter.emit(EventEmitter.java:140) at com.stardust.autojs.core.ui.dialog.JsDialogBuilder.emit(JsDialogBuilder.java:100) at com.stardust.autojs.core.ui.dialog.JsDialogBuilder.lambda$setUpEvents$1(JsDialogBuilder.java:51) at com.stardust.autojs.core.ui.dialog.JsDialogBuilder.$r8$lambda$8HhsFMMfy6YzsRCxpHdR8TbC7fI(Unknown Source:0) at com.stardust.autojs.core.ui.dialog.JsDialogBuilder$$ExternalSyntheticLambda1.onClick(Unknown Source:2) at com.afollestad.materialdialogs.MaterialDialog.onClick(MaterialDialog.java:393) at android.view.View.performClick(View.java:8208) at android.view.View.performClickInternal(View.java:8185) at android.view.View.-$$Nest$mperformClickInternal(Unknown Source:0) at android.view.View$PerformClick.run(View.java:32674) at android.os.Handler.handleCallback(Handler.java:959) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loopOnce(Looper.java:249) at android.os.Looper.loop(Looper.java:337) at android.app.ActivityThread.main(ActivityThread.java:9572) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935) `

  1. 屏幕截图(可选): 无
javasopp commented 2 days ago

描述错了,是保存到指定设备,然后运行。