作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我已经在我的设备上成功安装了 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/
我已经在我的设备上成功安装了 Xposed,我正在尝试编译一个模块来测试它的功能。 我已经关注了 this指导,我被困住了。我在 assets 文件夹中创建了 xposed_init 文件,并添加了对
我是一名优秀的程序员,十分优秀!