I am not able to use BluetoothLe. I am able to install it but when i take build it shows
Task :app:compileDebugJavaWithJavac FAILED
/home/Shubham/MyApps/bluetooth testing/AashaPlus/platforms/android/app/src/main/java/com/randdusing/bluetoothle/BluetoothLePlugin.java:929: error: cannot find symbol
addProperty(returnObj, “hasPermission”, Build.VERSION.SDK_INT < Build.VERSION_CODES.S || cordova.hasPermission(Manifest.permission.BLUETOOTH_SCAN));
^
symbol: variable S
location: class VERSION_CODES
/home/Shubham/MyApps/bluetooth testing/AashaPlus/platforms/android/app/src/main/java/com/randdusing/bluetoothle/BluetoothLePlugin.java:929: error: cannot find symbol
addProperty(returnObj, “hasPermission”, Build.VERSION.SDK_INT < Build.VERSION_CODES.S || cordova.hasPermission(Manifest.permission.BLUETOOTH_SCAN));
My Configurations are
Ionic:
Ionic CLI : 6.20.6 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.6.1
@angular-devkit/build-angular : 15.2.2
@angular-devkit/schematics : 15.2.2
@angular/cli : 15.2.2
@ionic/angular-toolkit : 8.0.0
Cordova:
Cordova CLI : 10.0.0 (cordova-lib@10.1.0)
Cordova Platforms : android 9.1.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 5 other plugins)
Utility:
cordova-res : 0.15.4
native-run : 1.7.2
System:
Android SDK Tools : 26.1.1 (/home/Shubham/Android/Sdk)
NodeJS : v16.19.0 (/usr/local/bin/node)
npm : 9.2.0
OS : Linux 5.19
Please help me out here.