作者: Kovli
重要通知:紅寶書第5版2024年12月1日出爐了席揽,感興趣的可以去看看害淤,https://u.jd.com/8alDI4w
紅寶書第五版中文版
紅寶書第五版英文原版pdf下載(訪問密碼: 9696)
報錯如下
[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
原因:https://boostorg.jfrog.io/artifactory/main/release/ 下面已經(jīng)沒有boost_1_76_0.tar.gz了,下載不到了
解決方法一:
Step 1: Update URL in ReactAndroid Build Script
Navigate to the file: /node_modules/react-native/ReactAndroid/build.gradle
Locate the following line:
https://boostorg.jfrog.io/artifactory/main/release/${BOOST_VERSION.replace("_", ".")}/source/boost_${BOOST_VERSION}.tar.gz
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
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:
patch-package react-native
patch-package expo-modules-core
這里如果提示沒有patch-package盏触,可以改用命令
npx patch-package expo-modules-core