-
-
Notifications
You must be signed in to change notification settings - Fork 797
Open
Labels
Description
I'm working on a project which uses RN 0.71.0. After installing the lib:
$ yarn add react-native-ble-manager
Let's try to run the project:
$ yarn android:dev
android:dev on my package.json is defined this way:
"android:dev-release": "cd android && ./gradlew clean && ENVFILE=.env.development ./gradlew assembleRelease && cd ..",
There are some errors:
> Task :react-native-ble-manager:compileDebugJavaWithJavac FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
349 actionable tasks: 333 executed, 16 up-to-date
Warning: This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
Note: /Users/anta40/Codes/Work/oa-mobile/node_modules/lottie-react-native/src/android/src/main/java/com/airbnb/android/react/lottie/LottieAnimationViewManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/anta40/Codes/Work/oa-mobile/node_modules/lottie-react-native/src/android/src/main/java/com/airbnb/android/react/lottie/LottieAnimationViewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/anta40/Codes/Work/oa-mobile/node_modules/@react-native-async-storage/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/AsyncStorageModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/anta40/Codes/Work/oa-mobile/node_modules/@react-native-async-storage/async-storage/android/src/javaPackage/java/com/reactnativecommunity/asyncstorage/AsyncStoragePackage.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
/Users/anta40/Codes/Work/oa-mobile/node_modules/react-native-ble-manager/android/src/main/java/it/innove/BleManager.java:43: error: cannot find symbol
class BleManager extends NativeBleManagerSpec {
^
symbol: class NativeBleManagerSpec
/Users/anta40/Codes/Work/oa-mobile/node_modules/react-native-ble-manager/android/src/main/java/it/innove/BleManager.java:142: error: cannot find symbol
emitOnDidUpdateState(map);
symbol: method emitOnDidUpdateState(WritableMap)
location: class BleManager.MyBroadcastReceiver
/Users/anta40/Codes/Work/oa-mobile/node_modules/react-native-ble-manager/android/src/main/java/it/innove/BleManager.java:187: error: cannot find symbol
emitOnPeripheralDidBond(map);
^
symbol: method emitOnPeripheralDidBond(WritableMap)
location: class BleManager.MyBroadcastReceiver
/Users/anta40/Codes/Work/oa-mobile/node_modules/react-native-ble-manager/android/src/main/java/it/innove/BleManager.java:231: error: method does not override or implement a method from a supertype
@Override
^
/Users/anta40/Codes/Work/oa-mobile/node_modules/react-native-ble-manager/android/src/main/java/it/innove/BleManager.java:295: error: cannot find symbol
if (getCurrentActivity() == null)
^
symbol: method getCurrentActivity()
location: class BleManager
/Users/anta40/Codes/Work/oa-mobile/node_modules/react-native-ble-manager/android/src/main/java/it/innove/BleManager.java:300: error: cannot find symbol
getCurrentActivity().startActivityForResult(intentEnable, ENABLE_REQUEST);
^
...
...
symbol: method emitOnStopScan(WritableMap)
location: variable bleManager of type BleManager
/Users/anta40/Codes/Work/oa-mobile/node_modules/react-native-ble-manager/android/src/main/java/it/innove/BleManagerPackage.java:23: error: incompatible types: BleManager cannot be converted to NativeModule
modules.add(new BleManager(reactApplicationContext));
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
25 errors
FAILURE: Build completed with 2 failures.
Let me know if you need the content of build.gradle or whatever