&引用;未能运行构造函数:ReferenceError:Can';找不到变量:PluginManager";在Android中

&引用;未能运行构造函数:ReferenceError:Can';找不到变量:PluginManager";在Android中,android,cordova,phonegap-plugins,Android,Cordova,Phonegap Plugins,我正在使用Phone Gap在Android中开发一个应用程序。在emulator上部署应用程序时,我收到此错误日志 01-25 12:41:13.773: D/PhoneGapLog(491): Failed to run constructor: ReferenceError: Can't find variable: PluginManager 01-25 12:41:13.773: D/PhoneGapLog(491): file:///android_asset/www/phonega

我正在使用Phone Gap在Android中开发一个应用程序。在emulator上部署应用程序时,我收到此错误日志

01-25 12:41:13.773: D/PhoneGapLog(491): Failed to run constructor: ReferenceError: Can't find variable: PluginManager
01-25 12:41:13.773: D/PhoneGapLog(491): file:///android_asset/www/phonegap-1.3.0.js: Line 210 : Failed to run constructor: ReferenceError: Can't find variable: PluginManager
01-25 12:41:13.773: I/Web Console(491): Failed to run constructor: ReferenceError: Can't find variable: PluginManager at file:///android_asset/www/phonegap-1.3.0.js:210
即使我的应用程序运行正常,也会出现错误

我的.js文件是

function GpsDetactionPlugin() {
};

GpsDetactionPlugin.prototype.checkGPS = function(suc,fail) {

 return PhoneGap.exec(suc, fail, "GpsDetactionPlugin", "gpsDetect", [null]);
};

PhoneGap.addConstructor(function() {
    PhoneGap.addPlugin("gpsDetaction", new GpsDetactionPlugin());
});

为什么我会收到这个不必要的错误日志。如何停止它?

JS代码对我来说很好,我怀疑问题出在其他地方。我在下面的位置有一个phonegap插件示例,你可以检查一下,看看你是否把所有配置都放对了。确保已将插件信息放入res/xml/plugin.xml中