path-to-project\node_modules\react-native-ble-plx\android\src\main\java\com\bleplx\adapter\BleModule.java:1102: error: cannot find symbol
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
^
symbol: variable S
location: class VERSION_CODES
path-to-project\node_modules\react-native-ble-plx\android\src\main\java\com\bleplx\adapter\BleModule.java:1114: error: cannot find symbol
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
^
symbol: variable S
location: class VERSION_CODES
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: path-to-project\node_modules\react-native-ble-plx\android\src\main\java\com\bleplx\adapter\utils\RefreshGattCustomOperation.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-ble-plx:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 12s
Prerequisites
Library version
3.1.2
Platform
Android
Setup Description
AndroidManifest:
Steps to Reproduce
Relevant log output
Contents of the
package.json
fileAdditional Information
build.gradle
Node