Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Error to build cordova-plugin-bluetoothle #96

Open
vhiguita opened this issue Dec 8, 2019 · 1 comment
Open

Error to build cordova-plugin-bluetoothle #96

vhiguita opened this issue Dec 8, 2019 · 1 comment

Comments

@vhiguita
Copy link

vhiguita commented Dec 8, 2019

I got the next error when I'm building the project for android (cordova build android):
Discovered saved plugin "cordova-plugin-bluetoothle ". Adding it to the project
Failed to restore plugin "cordova-plugin-bluetoothle " from config.xml. You might need to try adding it again. Error: Failed to fetch plugin cordova-plugin-bluetoothle @3.1.0 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! code EINVALIDPACKAGENAME
npm ERR! Invalid package name "cordova-plugin-bluetoothle ": name cannot contain leading or trailing spaces; name can only contain URL-friendly characters

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Roaming\npm-cache_logs\2019-12-08T22_33_29_391Z-debug.log

Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=C:\Users\user\AppData\Local\Android\Sdk (DEPRECATED)
Subproject Path: CordovaLib
Subproject Path: app

Task :app:preBuild UP-TO-DATE
Task :CordovaLib:preBuild UP-TO-DATE
Task :CordovaLib:preDebugBuild UP-TO-DATE
Task :CordovaLib:checkDebugManifest UP-TO-DATE
Task :CordovaLib:processDebugManifest UP-TO-DATE
Task :app:preDebugBuild UP-TO-DATE
Task :CordovaLib:compileDebugAidl NO-SOURCE
Task :app:compileDebugAidl NO-SOURCE
...

@HaberkornJonas
Copy link

HaberkornJonas commented Aug 21, 2020

While waiting for a fix (if any) you can replace all occurences of "cordova-plugin-bluetoothle " with "cordova-plugin-bluetoothle" (without the ending space character).
If I remember well, it should only occures in the config.xml and package.json files.

(please also note that this sample doesn't ask for location permissions on android that are since API 23 needed to scan for devices)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants