We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
通过as直接运行的形式是可以直接通过反射获取到插件中的类的,然后通过服务器下发至设备之后就不支持了,请问有方法解决吗
The text was updated successfully, but these errors were encountered:
@jinbolx 获取宿主ClassLoader, 通过ClassLoader#loadClass调用
Sorry, something went wrong.
是要获取插件的ClassLoader吧,这个ClassLoader如何获取?
最后解决了吗
@jinbolx @1282445717
要获取宿主的ClassLoader, 框架Hook替换了应用的ClassLoader, 用宿主的ClassLoader才会被框架拦截,然后去对应的插件找需要反射的类
Class.forName是无法反射插件中的类的,系统有检查,
No branches or pull requests
通过as直接运行的形式是可以直接通过反射获取到插件中的类的,然后通过服务器下发至设备之后就不支持了,请问有方法解决吗
The text was updated successfully, but these errors were encountered: