xxxxue/autox-super-kit

运行项目报错

Opened this issue · 0 comments

autoxjs版本: 6.5.9

17:35:02.582/E: Failed to define class

com.stardust.autojs.rhino.AndroidClassLoader$FatalLoadingException: Failed to define class
at com.stardust.autojs.rhino.AndroidClassLoader.defineClass(AndroidClassLoader.java:70)
at org.mozilla.javascript.JavaAdapter.loadAdapterClass(JavaAdapter.java:549)
at org.mozilla.javascript.JavaAdapter.getAdapterClass(JavaAdapter.java:346)
at org.mozilla.javascript.JavaAdapter.js_createAdapter(JavaAdapter.java:186)
at org.mozilla.javascript.JavaAdapter.execIdCall(JavaAdapter.java:99)
at org.mozilla.javascript.IdFunctionObject.call(IdFunctionObject.java:100)
at org.mozilla.javascript.BaseFunction.construct(BaseFunction.java:393)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1941)
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.exec(InterpretedFunction.java:103)
at com.stardust.autojs.engine.RhinoJavaScriptEngine.doExecution(RhinoJavaScriptEngine.kt:72)
at com.stardust.autojs.engine.JavaScriptEngine.execute(JavaScriptEngine.java:20)
at com.stardust.autojs.engine.LoopBasedJavaScriptEngine.access$001(LoopBasedJavaScriptEngine.java:17)
at com.stardust.autojs.engine.LoopBasedJavaScriptEngine.lambda$execute$0(LoopBasedJavaScriptEngine.java:42)
at com.stardust.autojs.engine.LoopBasedJavaScriptEngine.$r8$lambda$1NcDcpQbNQ6-P6Sb8blHuKpVcWo(Unknown Source:0)
at com.stardust.autojs.engine.LoopBasedJavaScriptEngine$$ExternalSyntheticLambda0.run(Unknown Source:6)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:224)
at android.os.Looper.loop(Looper.java:318)
at android.app.ActivityThread.main(ActivityThread.java:8711)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:561)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
Caused by: java.lang.ClassNotFoundException: Didn't find class "adapter1" on path: DexPathList[[zip file "/data/user/0/org.autojs.autoxjs.v6/cache/classes/1724698689643.jar"],nativeLibraryDirectories=[/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)
at com.stardust.autojs.rhino.AndroidClassLoader.defineClass(AndroidClassLoader.java:68)
... 26 more
Suppressed: java.io.IOException: Failed to open dex files from /data/user/0/org.autojs.autoxjs.v6/cache/classes/1724698689643.jar because: Failed to find magic
at dalvik.system.DexFile.openDexFileNative(Native Method)
at dalvik.system.DexFile.openDexFile(DexFile.java:406)
at dalvik.system.DexFile.(DexFile.java:128)
at dalvik.system.DexFile.(DexFile.java:101)
at dalvik.system.DexPathList.loadDexFile(DexPathList.java:438)
at dalvik.system.DexPathList.makeDexElements(DexPathList.java:397)
at dalvik.system.DexPathList.(DexPathList.java:166)
at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:160)
at dalvik.system.BaseDexClassLoader.(BaseDexClassLoader.java:105)
at dalvik.system.DexClassLoader.(DexClassLoader.java:55)
at com.stardust.autojs.rhino.AndroidClassLoader.loadDex(AndroidClassLoader.java:130)
at com.stardust.autojs.rhino.AndroidClassLoader.dexJar(AndroidClassLoader.java:145)
... 27 more