Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execution failed for task ':expo-modules-core:prepareBoost'. Not in GZIP format #15056

Closed
Cantaloupe313 opened this issue Jan 1, 2024 · 6 comments
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@Cantaloupe313
Copy link

Cantaloupe313 commented Jan 1, 2024

相关平台

android app

复现仓库

https://gitee.com/buera/utapp.git
小程序基础库: 无
使用框架: React

复现步骤

使用android studio构建然后运行app,报错Execution failed for task ':expo-modules-core:prepareBoost'.

期望结果

可以正常运行到模拟器

实际结果

构建后运行到app提示Execution failed for task ':expo-modules-core:prepareBoost'.

环境信息



  Taro CLI 3.5.7 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 16.20.1 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.21 - C:\Program Files\nodejs\yarn.CMD
      npm: 8.19.4 - C:\Program Files\nodejs\npm.CMD
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Jan 1, 2024
@Felix8029
Copy link

https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz 下载不到了,导致文件是个空的。

@channelltom
Copy link

Hey there guys,
I'm experiencing the same error when building my android application. Has anyone found a fix so far?

@Felix8029
Copy link

expo/expo#26184

@zhiqingchen
Copy link
Member

@github-project-automation github-project-automation bot moved this from Todo to Done in Mini Program Jan 2, 2024
@Jean-Bekker
Copy link

Fixed the Issue with Boost Library

Step 1: Update URL in ReactAndroid Build Script

  1. Navigate to the file: /node_modules/react-native/ReactAndroid/build.gradle

  2. Locate the following line:

https://boostorg.jfrog.io/artifactory/main/release/${BOOST_VERSION.replace("_", ".")}/source/boost_${BOOST_VERSION}.tar.gz
  1. Replace it with:
https://archives.boost.io/release/${BOOST_VERSION.replace("_", ".")}/source/boost_${BOOST_VERSION}.tar.gz

Step 2: Update URL in Expo Modules Core

  1. Go to the file: /node_modules/expo-modules-core/android/build.gradle.

  2. Search for the same URL as in Step 1.

  3. 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:

patch-package react-native
patch-package expo-modules-core

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

6 participants