Skip to content

Android Build Error  #407

@SE-Umee

Description

@SE-Umee

Hi,
I am getting this error while building the app on Android. How can I fix this?
Note Build Tools version is (30.0.3)

Configure project :notifee_react-native
:notifee_react-native @notifee/react-native found at /Users/se-umee/Desktop/apps/Motmaena_App/node_modules/@notifee/react-native
:notifee_react-native package.json found at /Users/se-umee/Desktop/apps/Motmaena_App/node_modules/@notifee/react-native/package.json
:notifee_react-native:version set from package.json: 7.8.2 (7,8,2 - 7008002)
:notifee_react-native:android.compileSdk using custom value: 33
:notifee_react-native:android.targetSdk using custom value: 33
:notifee_react-native:android.minSdk using custom value: 21
:notifee_react-native:reactNativeAndroidDir /Users/se-umee/Desktop/apps/Motmaena_App/node_modules/react-native/android
WARNING:The specified Android SDK Build Tools version (28.0.3) is ignored, as it is below the minimum supported version (30.0.3) for Android Gradle Plugin 7.4.2.
Android SDK Build Tools 30.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '28.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.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/8.0.1/userguide/command_line_interface.html#sec:command_line_warnings
5 actionable tasks: 5 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ':react-native-payments:bundleLibCompileToJarDebug'.

Could not create task ':react-native-payments:compileDebugJavaWithJavac'.
In order to compile Java 9+ source, please set compileSdkVersion to 30 or above

  • 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.

BUILD FAILED in 9s
error Failed to install the app.
info Run CLI with --verbose flag for more details.

Uploading Screenshot 2024-05-18 at 10.19.33 AM.png…

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions