gpt4 book ai didi

java - xposed_init ClassNotFoundException

转载 作者:太空狗 更新时间:2023-10-29 14:55:40 25 4
gpt4 key购买 nike

我已经在我的设备上成功安装了 Xposed,我正在尝试编译一个模块来测试它的功能。

我已经关注了 this指导,我被困住了。我在 assets 文件夹中创建了 xposed_init 文件,并添加了对名为 Test 的类的引用。 (引用应该是正确的,因为我右键单击并选择了“复制引用”)

当我运行模块并重启设备时,如果我转到 xposed 日志,结果是“java.lang.ClassNotFoundException:没有找到类...”

什么可能出错了?提前致谢。

最佳答案

这很简单。您的运行时类路径不包含 jar。您从 eclipse 包含到构建路径中的 jar 在运行时不可用,但仅在构建时可用。

如作者所说here ,

This extended startup process adds an additional jar to the classpath and calls methods from there at certain places.

关于java - xposed_init ClassNotFoundException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31771113/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com