Android Phonegap插件:未捕获类型错误
我已经创建了Phonegap CallLog插件(与前面提到的插件类似,并使其与2.7.0兼容),并将其与我的代码集成。但它的错误就在于Android Phonegap插件:未捕获类型错误,android,cordova,phonegap-plugins,Android,Cordova,Phonegap Plugins,我已经创建了Phonegap CallLog插件(与前面提到的插件类似,并使其与2.7.0兼容),并将其与我的代码集成。但它的错误就在于 function onDeviceReady() { window.plugins.CallLog.list('all', onSuccess, onError); } 说 E/Web Console(869): Uncaught TypeError: Cannot read property 'CallLog' of undefined at
function onDeviceReady() {
window.plugins.CallLog.list('all', onSuccess, onError);
}
说
E/Web Console(869): Uncaught TypeError: Cannot read property 'CallLog' of undefined at file:///android_asset/www/index.html:15
奇怪的是,错误出现在标签Web控制台上,我在插件上得到了成功的回调。甚至可以在日志文件中查看调用历史记录
所以我应该忽略这个错误,或者如果我这样做的话,这会困扰我吗