question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build on android fails for version 2.2.1

See original GitHub issue

Description

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

see in diff

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:closed
  • Created 2 years ago
  • Reactions:15
  • Comments:42 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
piaskowykcommented, Sep 13, 2021

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

5reactions
Yonomcommented, Sep 15, 2021

v2.2.2 fixed the issue for us

Read more comments on GitHub >

github_iconTop 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 >

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