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.

Android Build failed Task :react-native-reanimated:downloadBoost FAILED

See original GitHub issue

Description

After Adding react-native-reanimated library in React Native 0.70.0 we are getting below issue in Window 10:

error Failed to launch emulator. Reason: Emulator exited before boot..
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app...
Starting a Gradle Daemon, 3 incompatible and 1 stopped Daemons could not be reused, use --status for details

> Configure project :react-native-reanimated
Native libs debug enabled: false
Android gradle plugin: 7.2.1
Gradle: 7.5.1
building Reanimated2
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.

> Task :react-native-reanimated:downloadHermes UP-TO-DATE
Download https://github.com/facebook/hermes/tarball/hermes-2022-08-16-RNv0.70.0-716d48baf36b0b326ab82f53207b8682c87fc017

> Task :react-native-reanimated:downloadDoubleConversion UP-TO-DATE
Download https://github.com/google/double-conversion/archive/v1.1.6.tar.gz

> Task :react-native-reanimated:downloadBoost
Download https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz

> Task :react-native-reanimated:downloadFolly UP-TO-DATE
Download https://github.com/facebook/folly/archive/v2021.07.22.00.tar.gz

> Task :react-native-reanimated:downloadGlog UP-TO-DATE
Download https://github.com/google/glog/archive/v0.3.5.tar.gz

> Task :react-native-reanimated:downloadBoost FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.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/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
376 actionable tasks: 4 executed, 372 up-to-date

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.        
-----------
* What went wrong:
Execution failed for task ':react-native-reanimated:downloadBoost'.
> A failure occurred while executing de.undercouch.gradle.tasks.download.internal.DefaultWorkerExecutorHelper$DefaultWorkAction
   > java.net.SocketException: Connection reset

* 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:
java.lang.StackOverflowError (no error message)

* 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 3m 59s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':react-native-reanimated:downloadBoost'.
> A failure occurred while executing de.undercouch.gradle.tasks.download.internal.DefaultWorkerExecutorHelper$DefaultWorkAction
   > java.net.SocketException: Connection reset

* 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:
java.lang.StackOverflowError (no error message)

* 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 3m 59s

    at makeError (E:\SHWP\shwa-mobile\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)
    at E:\SHWP\shwa-mobile\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:278:16
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async runOnAllDevices (E:\SHWP\shwa-mobile\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
    at async Command.handleAction (E:\SHWP\shwa-mobile\node_mo
`

I am struggling with the issue from past 2 days. Still not able to find the any solution. I have tried with cache clean. Invalidated Cache and Restart in Android Studio but still we are facing above see. Please check the screenshot for more details:

image_2022_09_29T11_55_37_507Z

See OS configuration:

image_2022_09_30T05_11_24_794Z

Thanks

Steps to reproduce

  1. add below library in the project
  2. npm install @react-navigation/drawer
  3. npm install react-native-gesture-handler react-native-reanimated

Snack or a link to a repository

https://github.com/react-navigation/react-navigation

Reanimated version

2.10.0

React Native version

0.70.0

Platforms

Android

JavaScript runtime

No response

Workflow

No response

Architecture

No response

Build type

No response

Device

No response

Device model

No response

Acknowledgements

Yes

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
tomekzawcommented, Oct 18, 2022

^ moved to #3680, closing this issue as 2.11.0 no longer downloads Boost.

1reaction
tomekzawcommented, Oct 13, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native-reanimated:configureCMakeDebug[arm64-v8a]
FAILURE : Build completed with 2 failures. 1: Task failed with an exception. What went wrong: Execution failed for task ':react-native-reanimated ...
Read more >
Troubleshoot build performance with Build Analyzer
To see a breakdown of plugins with tasks determining the build's duration, click Plugins with tasks impacting build duration on the overview ...
Read more >
Failed Builds - Visual Studio App Center - Microsoft Learn
This app is signed by both the project settings & build configuration. So the Android jarsigner logs an error:.
Read more >
Build Error on Android App Bundle - Unity Forum
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':launcher:minifyReleaseWithProguard'. > java.io.
Read more >
Different Ways to fix "Execution failed for task - GeeksforGeeks
Many times while building an Android project our Manifest file gets overwritten. So we will get to see this kind of issue as...
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