App does not build because of react-native-reanimated

See original GitHub issue

Description

When compiling my app, React Native Reanimated gives an error in the build.gradle file:

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file '/home/mart/git/community_app_github/node_modules/react-native-reanimated/android/build.gradle' line: 21

* What went wrong:
A problem occurred evaluating project ':react-native-reanimated'.
> Plugin with id 'maven' not found.

* 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':react-native-reanimated'.
> compileSdkVersion is not specified. Please add it to build.gradle

* 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 4s

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0/userguide/command_line_interface.html#sec:command_line_warnings

I tried running npm update --force, but this gave an error of abs not being defined, with no js source files I can find.

Package versions

  • React Native: ^0.63.4
  • React Native Reanimated: ^1.8.0
  • NodeJS: 12.16.1
  • Xcode: N/A
  • Java & Gradle: Java 16 (java-16-jdk), Gradle 7.0

Affected platforms

  • Android

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:28 (5 by maintainers)

github_iconTop GitHub Comments

46reactions
SamiChabcommented, Feb 28, 2022

Until version 1.13.3, react-native reanimated didn’t support Gradle 7+. But since version 1.13.4 it’s possible ! yarn add react-native-reanimated@1.13.4

7reactions
TayyabaAslam3317commented, Feb 2, 2022

Was anyone able to fix this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

App does not build, react-native-reanimated gradle error
Hi everyone When I try to compile my project eas shows this error WARNING:Software Components will not be created automatically for Maven ...
Read more >
no aar for react-native-reanimated found. attempting to ...
Hey all, I'd like to share an update on a series of build failures React Native & Expo users have been experiencing when...
Read more >
Unable to build app after reanimated 2 installation in react ...
The point in my answer is that having a deep copy fixes the issue. At least it did in the case mentioned above....
Read more >
Installation | React Native Reanimated
First step is to install react-native-reanimated as a dependency in your project: ... Turn on Hermes engine by editing android/app/build.gradle.
Read more >
react-native-reanimated
TypeScript icon, indicating that this package has built-in type ... API but don't feel like trying it on a real app, you can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found