Skip to content

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. #287

Open

Description

@izzm-vp

hey guys , im tryin to implement shared element transition between two screen , and everything looks fine and i get no errors in logs , until i try to use a develpment build to test the application , and once i run the command npm expo run:android the build starts and once it reach react-native-shared-element the build fails and it gives me the error below, and also once i delete the shared element from my project the build works just fine :

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-shared-element:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
> Run with --info option to get more log output.
> Run with --scan to get full insights.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

i tried downgrading gradle version and it doesnt work .

i used these dependencies :

    react-navigation/native: 7.0.14
    react-navigation/stack: 7.1.1
    react-navigation-shared-element: 3.1.3
    react-native-shared-element: 0.8.9

Activity

  1. Agamenox commented on Feb 25, 2025

    @Agamenox

    Same problem in all our Apps with react-native-shared-element version0.8.9. Expo compilation don't work with a Gradle build failed with unknown error:

    Image

    the only solution until now is remove complete react-navigation-shared-element, any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions