Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ListView 莫名其妙崩溃 java.lang.NoClassDefFoundError: Failed resolution of: Ljdk/dynalink/DynamicLinkerFactory; #319

Open
happyme531 opened this issue Feb 5, 2025 · 0 comments

Comments

@happyme531
Copy link

happyme531 commented Feb 5, 2025

https://github.com/happyme531/clxTools/tree/autojs6/%E6%A5%9A%E7%95%99%E9%A6%99%E9%9F%B3%E4%B9%90%E7%9B%92
这个项目使用AutoX.js可以正常运行,但是autojs6 v6.6.1 显示音乐列表时会崩溃

            ui.run(() => {
                window.fileList.setDataSource(files.map(function (name) {
                    return {
                        name: name,
                        displayName: musicFormats.getFileNameWithoutExtension(name),
                        addable: selectedPlaylistIndex == null,
                        removable: selectedPlaylistIndex != null,
                        liked: fileProvider.userMusicLists[0].musicFiles.includes(name),
                        extraInfo: name.startsWith('cloud') ? '(云端)' : ''
                    };
                }));
                window.loadingProgressBar.setVisibility(android.view.View.GONE);
            });
02-05 18:55:51.338 19007 19007 W System.err: Warning: Unable to read ClassFileWriter.class, using default bytecode version
02-05 18:55:51.340 19007 19007 E AndroidRuntime: FATAL EXCEPTION: main
02-05 18:55:51.340 19007 19007 E AndroidRuntime: Process: org.autojs.autojs6, PID: 19007
02-05 18:55:51.340 19007 19007 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Ljdk/dynalink/DynamicLinkerFactory;
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.mozilla.javascript.optimizer.Bootstrapper.<clinit>(Bootstrapper.java:49)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.mozilla.javascript.optimizer.BodyCodegen.addDynamicInvoke(BodyCodegen.java:4598)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.mozilla.javascript.optimizer.BodyCodegen.generateExpression(BodyCodegen.java:1031)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.mozilla.javascript.optimizer.BodyCodegen.generateStatement(BodyCodegen.java:833)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.mozilla.javascript.optimizer.BodyCodegen.generateStatement(BodyCodegen.java:708)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.mozilla.javascript.optimizer.BodyCodegen.generateStatement(BodyCodegen.java:708)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.mozilla.javascript.optimizer.BodyCodegen.generateBodyCode(BodyCodegen.java:61)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.mozilla.javascript.optimizer.Codegen.generateCode(Codegen.java:288)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.mozilla.javascript.optimizer.Codegen.compileToClassFile(Codegen.java:174)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.mozilla.javascript.optimizer.Codegen.compile(Codegen.java:94)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.mozilla.javascript.Context.compileImpl(Context.java:2526)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.mozilla.javascript.Context.compileString(Context.java:1462)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.mozilla.javascript.Context.compileString(Context.java:1450)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.mozilla.javascript.Context.evaluateString(Context.java:1217)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.autojs.autojs.runtime.api.augment.ui.UI$Companion.evalInContext$lambda$40(UI.kt:676)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.autojs.autojs.runtime.api.augment.ui.UI$Companion.$r8$lambda$Bl009JnLZFdJeJdmVMMjFc_q8ss(Unknown Source:0)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.autojs.autojs.runtime.api.augment.ui.UI$Companion$$ExternalSyntheticLambda14.invoke(D8$$SyntheticClass:0)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.autojs.autojs.util.RhinoUtils.withRhinoContext(RhinoUtils.kt:734)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.autojs.autojs.runtime.api.augment.ui.UI$Companion.evalInContext(UI.kt:649)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.autojs.autojs.runtime.api.augment.ui.UI$Companion.bindValueForApplyingAttribute(UI.kt:629)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.autojs.autojs.runtime.api.augment.ui.UI$Companion.access$bindValueForApplyingAttribute(UI.kt:317)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.autojs.autojs.runtime.api.augment.ui.UI$UIProxyLayoutInflaterDelegate.beforeApplyAttribute(UI.kt:260)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.autojs.autojs.core.ui.inflater.DynamicLayoutInflater.applyAttribute(DynamicLayoutInflater.kt:409)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.autojs.autojs.core.ui.inflater.DynamicLayoutInflater.applyAttributes(DynamicLayoutInflater.kt:398)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.autojs.autojs.core.ui.inflater.DynamicLayoutInflater.applyAttributes(DynamicLayoutInflater.kt:305)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.autojs.autojs.core.ui.widget.JsListView$Adapter.applyDynamicAttrs(JsListView.java:163)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.autojs.autojs.core.ui.widget.JsListView$Adapter.applyDynamicAttrs(JsListView.java:171)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.autojs.autojs.core.ui.widget.JsListView$Adapter.onBindViewHolder(JsListView.java:151)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.autojs.autojs.core.ui.widget.JsListView$Adapter.onBindViewHolder(JsListView.java:125)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at androidx.recyclerview.widget.RecyclerView$Adapter.onBindViewHolder(RecyclerView.java:7747)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at androidx.recyclerview.widget.RecyclerView$Adapter.bindViewHolder(RecyclerView.java:7847)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at androidx.recyclerview.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(RecyclerView.java:6646)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6917)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6757)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6753)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2362)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1662)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1622)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:687)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at org.autojs.autojs.groundwork.WrapContentLinearLayoutManager.onLayoutChildren(WrapContentLinearLayoutManager.java:33)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:4645)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at androidx.recyclerview.widget.RecyclerView.dispatchLayout(RecyclerView.java:4348)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at androidx.recyclerview.widget.RecyclerView.onLayout(RecyclerView.java:4919)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.View.layout(View.java:25788)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.ViewGroup.layout(ViewGroup.java:6874)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1891)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1729)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.widget.LinearLayout.onLayout(LinearLayout.java:1638)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.View.layout(View.java:25788)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.ViewGroup.layout(ViewGroup.java:6874)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.View.layout(View.java:25788)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.ViewGroup.layout(ViewGroup.java:6874)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.View.layout(View.java:25788)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.ViewGroup.layout(ViewGroup.java:6874)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.View.layout(View.java:25788)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.ViewGroup.layout(ViewGroup.java:6874)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.widget.FrameLayout.layoutChildren(FrameLayout.java:332)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.widget.FrameLayout.onLayout(FrameLayout.java:270)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.View.layout(View.java:25788)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.ViewGroup.layout(ViewGroup.java:6874)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:5349)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:4589)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:3345)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:11437)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1690)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1699)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.Choreographer.doCallbacks(Choreographer.java:1154)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.Choreographer.doFrame(Choreographer.java:1080)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1647)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:958)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:99)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.os.Looper.loopOnce(Looper.java:230)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:319)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:9063)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:588)
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
02-05 18:55:51.340 19007 19007 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: jdk.dynalink.DynamicLinkerFactory
02-05 18:55:51.340 19007 19007 E AndroidRuntime:        ... 83 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant