Open vhiguita opened 4 years ago
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)
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