expo: Unable to resolve package boost_X_XX_0.tar.gz
Summary
Hi, since yesterday it’s not possible to download boost package. https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz seems to be unavailable:
[RUN_GRADLEW] Execution failed for task ':expo-modules-core:prepareBoost'. [RUN_GRADLEW] > Could not read /tmp/adam/eas-build-local-nodejs/.../expo-modules-core/android/build/downloads/boost_1_76_0.tar.gz. [RUN_GRADLEW] > Not in GZIP format
What platform(s) does this occur on?
Android
SDK Version
~47.0.12
Environment
expo-env-info 1.0.5 environment info: System: OS: Linux 6.2 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish) Shell: 5.1.16 - /bin/bash Binaries: Node: 21.4.0 - ~/.nvm/versions/node/v21.4.0/bin/node Yarn: 1.22.21 - /usr/local/bin/yarn npm: 10.2.4 - ~/.nvm/versions/node/v21.4.0/bin/npm npmPackages: @expo/webpack-config: ^0.17.2 => 0.17.4 expo: ~47.0.12 => 47.0.14 react: 18.1.0 => 18.1.0 react-dom: 18.1.0 => 18.1.0 react-native: 0.70.5 => 0.70.5 react-native-web: ~0.18.9 => 0.18.12 Expo Workflow: managed
Minimal reproducible example
eas build -p android --local --profile preview
About this issue
- Original URL
- State: closed
- Created 6 months ago
- Reactions: 1
- Comments: 29
In your node_modules => expo-modules-core/android/build.gradle,
Replace the following function
with the below function
I have changed the source URL in the downloadBoost function by following this answer and it works for me. I just patched this in my project using patch-package.
Make sure to delete the previously downloaded file boost_1_76_0.tar.gz in expo-modules-core/android/build/downloads
It started to happen again today…
We need install patch-package first:
npm i -D patch-packageAnd add"postinstall": "patch-package"to package.jsonFixed the Issue with Boost Library
Step 1: Update URL in ReactAndroid Build Script
Navigate to the file:
/node_modules/react-native/ReactAndroid/build.gradleLocate the following line:
Step 2: Update URL in Expo Modules Core
Go to the file:
/node_modules/expo-modules-core/android/build.gradle.Search for the same URL as in Step 1.
Replace it with the new URL provided in Step 1.
Step 3: Apply the Patches
After making the changes, run the following commands to apply the patches:
I think there is a problem with access to this resource - there is a redirect to a page that returns a
302 Moved Temporarilyinstead of the file.Same here
This problem has troubled me for too long and cannot be solved at all. Is there a standard answer?
JFrog for boost download now is up, and the issue should be resolved. I’ve tried to build using EAS and its success
I manually download boost from https://zenlayer.dl.sourceforge.net/project/boost/boost/1.83.0/boost_1_83_0.tar.gz, and put it under expo/react-native-lab/react-native/packages/react-native/ReactAndroid/build/downloads