【问题标题】:PGPlugin class PGBatteryLevelPlugin (pluginName: com.phonegap.battery) does not exist?PGPlugin 类 PGBatteryLevelPlugin (pluginName: com.phonegap.battery) 不存在?
【发布时间】:2011-11-22 06:03:25
【问题描述】:

大家好,我正在尝试 phonegap 中的事件章节,当我查找电池问题时,它会将日志显示为 2011-11-22 11:30:17.964 Event[644:207] ERROR: Plugin 'com.phonegap.battery' not found, or is not a PGPlugin. Check your plugin mapping in PhoneGap.plist.


当我将 plist 中的 com.phonegap.battery 映射为值 PGBatteryLevelPlugin 时,日志为

2011-11-22 11:18:03.152 Event[552:207] PGPlugin class PGBatteryLevelPlugin (pluginName: com.phonegap.battery) does not exist. 2011-11-22 11:18:03.152 Event[552:207] ERROR: Plugin 'com.phonegap.battery' not found, or is not a PGPlugin. Check your plugin mapping in PhoneGap.plist.



知道该怎么做吗?我已经下载了phonegap的插件,但是找不到电池插件。

【问题讨论】:

    标签: iphone ios cordova phonegap-plugins


    【解决方案1】:

    PhoneGap 没有电池插件。您要查找的内容实际上是写在wiki.phonegap.com 的教程的一部分。我不认为它是一个真正的插件。

    在“Phone Gap”+“battery”上再次进行 Google 搜索,您可能会发现更有用的东西。

    像我刚刚找到的这个:https://github.com/alunny/phonegap-battery-status

    【讨论】:

    • 是的,我已经下载了这个插件,实际上我刚刚开始学习PhoneGap,因此正在尝试它的所有教程。但不幸的是,电池事件没有被触发。为您的答案 +1,当没有确切答案时将接受答案。
    猜你喜欢
    • 2016-08-19
    • 2023-04-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多