2016-12-25 5 views
0

Я использую PhoneGap и я хочу использовать этот м плагин: https://github.com/srehanuddin/Cordova-Plugin-Bluetooth-PrinterКордова плагин не работает (не определен)

Unfortunelly консоль печататься эту информацию, когда я попытался использовать этот плагин:

Uncaught ReferenceError: BTPrinter is not defined

Но если я использовал cmd и проверял плагины: ... перейдите в папку приложения и введите phonegap plugin list Я вижу: cordova-plugin-bluetooth-printer 0.0.1-dev "BluetoothPrinter"

Вы знаете, где могут быть проблемы?

confix.xml:

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

Спасибо!

+0

во многом зависит, как билд установки. Скорее всего, какой бы процесс не копировал плагин src в нужное место, или ваше приложение, которое на самом деле работает, не смотрит в любом месте библиотеки. –

+0

Я использовал приложение рабочего стола Phonegap (просто нажмите, чтобы сделать новый проект). –

+0

Папка приложения содержит следующие вложенные папки: .cordova, hooks, platform, plugins (содержит плагин bluetooth printer), красный, www, confix.xml –

ответ

0

UPDATE: Если я пытаюсь построить с помощью 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 [email protected] 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. - 

 Смежные вопросы

  • Нет связанных вопросов^_^