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

PluginManager.getInstance().installPackage方法中mPluginManager为null的问题 #166

Open
JackHuang-888 opened this issue Apr 20, 2016 · 2 comments

Comments

@JackHuang-888
Copy link

按照文档配置工程,安装插件时PluginManager.getInstance().installPackage方法中mPluginManager为null,插件无法安装,一般是什么原因造成的?

@javalover
Copy link

remoteService 还没启动起来吧,
先调 PluginManager.getInstance()#waitForConnected,注意会阻塞线程,不要在主线程中做

@zhc81972335
Copy link

我也遇到类似的问题,调试发现mPluginManager在初始化的时候失败了。我的原因是DroidPlugin项目代码中有个问题,BundleCompat这个文件的23行,putIBinder = Bundle.class.getDeclaredMethod("getIBinder", String.class, IBinder.class);明显写错了,应该是.getDeclaredMethod("putIBinder", String.class, IBinder.class);

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

3 participants