PhoneGap 错误:找不到插件“LowLatencyAudio”,或者不是 CDVPlugin
Posted
技术标签:
【中文标题】PhoneGap 错误:找不到插件“LowLatencyAudio”,或者不是 CDVPlugin【英文标题】:PhoneGap error: Plugin 'LowLatencyAudio' not found, or is not a CDVPlugin 【发布时间】:2014-03-11 03:10:18 【问题描述】:我们使用的是 PhoneGap 3.4。我们按照此处的说明安装了 LowLatencyAudio 插件:https://github.com/triceam/LowLatencyAudio
但是,我们看到以下错误:
2014-03-10 19:59:25.960 S[7828:60b] CDVPlugin class LowLatencyAudio (pluginName: LowLatencyAudio) does not exist.
2014-03-10 19:59:25.962 S[7828:60b] ERROR: Plugin 'LowLatencyAudio' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2014-03-10 19:59:25.963 S[7828:60b] -[CDVCommandQueue executePending] [Line 127] FAILED pluginJSON = [
"INVALID",
"LowLatencyAudio",
"preloadFX",
[
"sounds\/right.mp3",
"sounds\/wrong.mp3"
]
]
映射确实存在于 config.xml 中。我们调用代码:
LowLatencyAudio.preloadFX( GUESS_RIGHT_SOUND, GUESS_RIGHT_SOUND);
LowLatencyAudio.preloadFX( GUESS_WRONG_SOUND, GUESS_WRONG_SOUND);
我们也试过了:
PGLowLatencyAudio.preloadFX( GUESS_RIGHT_SOUND, GUESS_RIGHT_SOUND);
PGLowLatencyAudio.preloadFX( GUESS_WRONG_SOUND, GUESS_WRONG_SOUND);
这两种方法都失败了,只有LowLatencyAudio
一种会生成错误消息。
【问题讨论】:
【参考方案1】:在这里找到答案:Cordova ios plugins not found
确保插件源类的“目标成员”包含正确的应用程序。
【讨论】:
以上是关于PhoneGap 错误:找不到插件“LowLatencyAudio”,或者不是 CDVPlugin的主要内容,如果未能解决你的问题,请参考以下文章
Phonegap 3.5 + Facebook 插件错误它说“找不到 FacebookSDK/FacebookSDK.h 文件”
Cordova/Phonegap / iOS:错误:找不到插件“Plugin01”,或者不是 CDVP 插件。检查 config.xml 中的插件映射