PhoneGap的3插件:EXEC()调用未知插件" ..." [英] PhoneGap 3 plugin: exec() call to unknown plugin "..."

查看:508
本文介绍了PhoneGap的3插件:EXEC()调用未知插件" ..."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在试图插件升级到第三版了,我已经成功地让过去的插件加载问题,我已经成功地暴露插件的客户端环境(在更改方式EXEC作品,等等)。

I've been trying to upgrade a plugin to v3, and I've managed to get past the plugin loading issues, and I've managed to expose the plugin to the client environment (making changes to the way exec works, etc).

但是,当我观看了亚行logcat与

But when I watch the adb logcat with

亚行logcat | grep的-v nativeGetEnabledTags | grep的-i网站

我得到这个错误:

D /插件管理(11189):EXEC()调用未知插件:WebSocket的

我不能工作了什么乱子,我不知道为什么Android的版本无法看到该插件。

I can't work out what's gone wrong, and I'm not sure why the Android build can't see the plugin.

我已经把所有的code到GitHub库,因此,如果有人能够复制和帮助下,我会非常欢迎!我也试着写了我转换的经验和记录的陷阱,因为我打他们(有一些自述,虽然它是不完整的):

I've pushed ALL the code to a github repo, so if someone is able to replicate and help I'd be very welcome! I'm also trying to write up my experience of the conversion and logging the gotchas as I hit them (there's some in the readme, though it's incomplete):

下面是回购: https://github.com/remy/phonegap_test

- 雷米

推荐答案

定义你的插件RES / XML / config.xml中

define your plugin in "res/xml/config.xml"

在文件中找到这些行

<feature name="App">
        <param name="android-package" value="org.apache.cordova.App" />
</feature>

和后面追加这些正确的:

and append these right after:

<feature name="MyPluginName">
        <param name="android-package" value="com.phonegap.plugins.plugin.class" />
</feature>

替换虚拟名称(MyPluginName,plugins.plugin.class等)与实际名称。这个工作对我来说,当我得到这个错误:

replace the dummy names (MyPluginName, plugins.plugin.class, etc) with the actual names. This works for me when I was getting this error:

执行exec()调用未知插件:MyPluginName

exec() call to unknown plugin : MyPluginName

这篇关于PhoneGap的3插件:EXEC()调用未知插件&QUOT; ...&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆