Build on android fails for version 2.2.1
See original GitHub issueDescription
when running cd android && ./gradlew clean && cd .. && react-native run-android --variant=devDebug --appIdSuffix=dev
I get the following error:
FAILURE: Build failed with an exception.
* Where:
Build file 'my-app/node_modules/react-native-reanimated/android/build.gradle' line: 85
* What went wrong:
A problem occurred evaluating project ':react-native-reanimated'.
> Task with path ':app:mergeDebugNativeLibs' not found in project ':app'.
Expected behavior
Should not crash
Actual behavior & steps to reproduce
Update from 2.2.0 to 2.2.1
Snack or minimal code example
Package versions
- React Native:
"react-native": "0.64.2",
- React Native Reanimated:
"react-native-reanimated": "^2.2.1",
- NodeJS:
v16.8.0
- Xcode: N/A
- Java & Gradle: N/A
Affected platforms
- Android
- iOS
- Web
Issue Analytics
- State:
- Created 2 years ago
- Reactions:15
- Comments:42 (2 by maintainers)
Top Results From Across the Web
android - error with gradle 2.2.1
I updated Android Studio to 1.4.1 version. gradle sync said needs to version 2.2.1. I downloaded gradle 2.2.1 and in file-->settings-->gradle ...
Read more >Known issues for Android Studio 2.2 and earlier
A bug in preview 5 means that building non-Gradle projects in the IDE is not working well. (Note - this isn't a supported...
Read more >android N failing to compile/build when trying ... - Issue Tracker
I'm now having this problem with the build-tools 24.0.0-rc2 under Android Studio 2.0 RC1. Formerly it was OK with the latest stable build-tools...
Read more >Upgrading your build from Gradle 4.x to 5.0
If you are using Gradle for Android, you need to move to version 3.3 or higher of both the Android Gradle Plugin and...
Read more >Android resource compilation failed error while upgrading ...
in some of your build.gradle files, they might be referring an older version of kotlin. you want want to look for these instance,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The temporary solution is to replace reanimated/build.gradle with this https://raw.githubusercontent.com/software-mansion/react-native-reanimated/2.2.0/android-npm/build.gradle
v2.2.2
fixed the issue for us