Cordova插件不起作用(未定义)



我正在使用phonegap,我想使用此m插件:https://github.com/srehanuddin/cordova-plugin-bluetooth-printer

不幸的控制台在我尝试使用此插件时打印了此信息:

Uncaught ReferenceError: BTPrinter is not defined

但是,如果我使用CMD并检查了插件:...转到App文件夹并键入phonegap plugin list我明白: cordova-plugin-bluetooth-printer 0.0.1-dev "BluetoothPrinter"

你知道在哪里有问题吗?

condix.xml:

`<gap:plugin name="cordova-plugin-bluetooth-printer" />`

谢谢!

更新:如果我尝试通过build.phonegap.com构建:

Error - Plugin error (you probably need to remove plugin files from your app): //github.com/srehanuddin/Cordova-Plugin-Bluetooth-Printer.git#1.0.0": support for subdirectories is deprecated and will be removed in Cordova@7 Fetching plugin "https://github.com/srehanuddin/Cordova-Plugin-Bluetooth-Printer.git" via git clone Cloning full repository Failed to fetch plugin https://github.com/srehanuddin/Cordova-Plugin-Bluetooth-Printer.git via git. Either there is a connection problems, or plugin spec is incorrect: Error: git: Command failed with exit code 1 Error output: error: pathspec '1.0.0' did not match any file(s) known to git. - 

最新更新