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

插件无法正常加载 #290

Open
TonyJiangWJ opened this issue Jan 6, 2025 · 1 comment
Open

插件无法正常加载 #290

TonyJiangWJ opened this issue Jan 6, 2025 · 1 comment

Comments

@TonyJiangWJ
Copy link
Contributor

AutoJS6.6.0和6.6.1两个版本均不可正常运作。
AutoJS6.5.0还能够正常使用的。
相关插件:https://github.com/TonyJiangWJ/websocketplugin
插件加载代码:

let plugin_websocket = (() => {
  try {
    return plugins.load('com.tony.websocket')
  } catch (e) {
    toastLog('当前未安装websocket插件,加载失败' + e)
    exit()
  }
})()

报错信息:

方法 plugins.load 调用失败. org.autojs.autojs.runtime.api.augment.plugins.Plugins.load [class [Ljava.lang.Object;]

我看plugins相关代码修改比较大,目前暂时没有看懂原因是啥。

另外一个问题是加载dex 还存在问题,似乎使用了setReadOnly来解决,但实际没有生效,是否考虑复制到临时目录再对新复制的文件设置readOnly

@SuperMonster003
Copy link
Owner

感谢 Tony 反馈, 我会根据这些线索在下一版本尝试修复一下上述两个问题.

Sent from my XQ-DQ72 using FastHub

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

2 participants