Phonegap插件没有加载

时间:2015-02-13 16:16:16

标签: javascript android cordova phonegap-plugins phonegap-build

我试图在PhoneGap Android模拟器应用上使用名为Socialsharing的Phonegap插件,但它无法加载。

尝试了一些步骤:

  • cli:phonegap插件添加nl.x-services.plugins.socialsharing

  • cli:phonegap prepare

  • cli:phonegap build

  • 有关PhoneGap Build: SocialSharing Plugin Not Loading

  • 的说明
  • cordova.require(" nl.x-services.plugins.socialsharing.SocialSharing&#34); - >找不到错误消息

  • window.plugins.socialsharing不存在,但我听说它已被弃用

在控制台中,我看到了这一点:

[phonegap] 200 /plugins/nl.x-services.plugins.insomnia/www/Insomnia.js

但没有关于社交共享插件

我如何调试/解决这个问题?

1 个答案:

答案 0 :(得分:0)

您指向的解决方案适用于PhoneGap Build在线服务。对于本地构建,您需要执行此操作:

phonegap plugin add nl.x-services.plugins.socialsharing

然后:

phonegap build