React Native Android

React Native Android build fails after installing Backendless:

npm i backendless-react-native -S

Error:

Unable to detect AGP versions for included builds. All projects in the build should use the same AGP version. Class name for the included build object: org.gradle.composite.internal.DefaultIncludedBuild$IncludedBuildImpl_Decorated.
WARNING:API 'BaseVariant.getApplicationIdTextResource' is obsolete and has been replaced with 'VariantProperties.applicationId'.
It will be removed in version 7.0 of the Android Gradle plugin.
For more information, see TBD.
To determine what is calling BaseVariant.getApplicationIdTextResource, use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
Warning: The app gradle file must have a dependency on com.google.firebase:firebase-core for Firebase services to work as intended.
Warning: The app gradle file must have a dependency on com.google.firebase:firebase-core for Firebase services to work as intended.

> Task :backendless-react-native: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.3.3/userguide/command_line_interface.html#sec:command_line_warnings
33 actionable tasks: 2 executed, 31 up-to-date
/Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/backendless-react-native/android/src/main/java/com/reactlibrary/RNBackendlessModule.java:24: error: cannot find symbol
import com.google.firebase.iid.FirebaseInstanceId;
                              ^
  symbol:   class FirebaseInstanceId
  location: package com.google.firebase.iid
/Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/backendless-react-native/android/src/main/java/com/reactlibrary/RNBackendlessModule.java:25: error: cannot find symbol
import com.google.firebase.iid.InstanceIdResult;
                              ^
  symbol:   class InstanceIdResult
  location: package com.google.firebase.iid
/Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/backendless-react-native/android/src/main/java/com/reactlibrary/RNBackendlessModule.java:91: error: cannot find symbol
        FirebaseInstanceId firebaseInstanceId = FirebaseInstanceId.getInstance();
        ^
  symbol:   class FirebaseInstanceId
  location: class RNBackendlessModule
/Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/backendless-react-native/android/src/main/java/com/reactlibrary/RNBackendlessModule.java:91: error: cannot find symbol
        FirebaseInstanceId firebaseInstanceId = FirebaseInstanceId.getInstance();
                                                ^
  symbol:   variable FirebaseInstanceId
  location: class RNBackendlessModule
/Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/backendless-react-native/android/src/main/java/com/reactlibrary/RNBackendlessModule.java:92: error: cannot find symbol
        Task<InstanceIdResult> instanceIdTast = firebaseInstanceId.getInstanceId();
             ^
  symbol:   class InstanceIdResult
  location: class RNBackendlessModule
/Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/backendless-react-native/android/src/main/java/com/reactlibrary/RNBackendlessModule.java:94: error: cannot find symbol
        instanceIdTast.addOnCompleteListener(new OnCompleteListener<InstanceIdResult>() {
                                                                    ^
  symbol:   class InstanceIdResult
  location: class RNBackendlessModule
/Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/backendless-react-native/android/src/main/java/com/reactlibrary/RNBackendlessModule.java:96: error: cannot find symbol
            public void onComplete(@NonNull Task<InstanceIdResult> task) {
                                                 ^
  symbol: class InstanceIdResult
/Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/backendless-react-native/android/src/main/java/com/reactlibrary/RNBackendlessModule.java:102: error: cannot find symbol
                    InstanceIdResult instanceIdResult = task.getResult();
                    ^
  symbol: class InstanceIdResult
Note: /Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/backendless-react-native/android/src/main/java/com/reactlibrary/RNBackendlessPushNotificationHelper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
8 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':backendless-react-native: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 11s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
/Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/backendless-react-native/android/src/main/java/com/reactlibrary/RNBackendlessModule.java:24: error: cannot find symbol
import com.google.firebase.iid.FirebaseInstanceId;
                              ^
  symbol:   class FirebaseInstanceId
  location: package com.google.firebase.iid
/Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/backendless-react-native/android/src/main/java/com/reactlibrary/RNBackendlessModule.java:25: error: cannot find symbol
import com.google.firebase.iid.InstanceIdResult;
                              ^
  symbol:   class InstanceIdResult
  location: package com.google.firebase.iid
/Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/backendless-react-native/android/src/main/java/com/reactlibrary/RNBackendlessModule.java:91: error: cannot find symbol
        FirebaseInstanceId firebaseInstanceId = FirebaseInstanceId.getInstance();
        ^
  symbol:   class FirebaseInstanceId
  location: class RNBackendlessModule
/Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/backendless-react-native/android/src/main/java/com/reactlibrary/RNBackendlessModule.java:91: error: cannot find symbol
        FirebaseInstanceId firebaseInstanceId = FirebaseInstanceId.getInstance();
                                                ^
  symbol:   variable FirebaseInstanceId
  location: class RNBackendlessModule
/Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/backendless-react-native/android/src/main/java/com/reactlibrary/RNBackendlessModule.java:92: error: cannot find symbol
        Task<InstanceIdResult> instanceIdTast = firebaseInstanceId.getInstanceId();
             ^
  symbol:   class InstanceIdResult
  location: class RNBackendlessModule
/Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/backendless-react-native/android/src/main/java/com/reactlibrary/RNBackendlessModule.java:94: error: cannot find symbol
        instanceIdTast.addOnCompleteListener(new OnCompleteListener<InstanceIdResult>() {
                                                                    ^
  symbol:   class InstanceIdResult
  location: class RNBackendlessModule
/Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/backendless-react-native/android/src/main/java/com/reactlibrary/RNBackendlessModule.java:96: error: cannot find symbol
            public void onComplete(@NonNull Task<InstanceIdResult> task) {
                                                 ^
  symbol: class InstanceIdResult
/Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/backendless-react-native/android/src/main/java/com/reactlibrary/RNBackendlessModule.java:102: error: cannot find symbol
                    InstanceIdResult instanceIdResult = task.getResult();
                    ^
  symbol: class InstanceIdResult
Note: /Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/backendless-react-native/android/src/main/java/com/reactlibrary/RNBackendlessPushNotificationHelper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
8 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':backendless-react-native: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 11s

    at makeError (/Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/execa/index.js:174:9)
    at /Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/execa/index.js:278:16
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async runOnAllDevices (/Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
    at async Command.handleAction (/Users/kamrezvani/Desktop/Backendless/RNPushDemo/node_modules/@react-native-community/cli/build/index.js:192:9)
info Run CLI with --verbose flag for more details.

Hello @kam-rezvani

I have created an internal ticket BKNDLSS-28465 to investigate the issue.