EAS Build构建Android应用时遇元数据上传失败及权限问题
EAS Build Android构建报错问题
执行eas build -p android、eas build --platform android --profile preview或eas build --profile preview命令构建Android应用时,出现警告“Failed to upload metadata to EAS Build”,原因是“Request failed: 400 (Bad Request)”。此前构建流程正常,从昨日起持续报错,同时项目压缩包大小从之前的3-5MB骤增至100MB以上,新建Expo项目构建也出现相同错误。
本地终端执行日志
PS D:\Javaneh\Projects\ghodrat-telecom-ultimate> eas build -p android Resolved "production" environment for the build. Learn more: https://docs.expo.dev/eas/environment-variables/#setting-the-environment-for-your-builds No environment variables with visibility "Plain text" and "Sensitive" found for the "production" environment on EAS. ✔ Incremented versionCode from 1 to 2. ✔ Using remote Android credentials (Expo server) ✔ Using Keystore from configuration: Build Credentials mHg5xK_JbM (default) Compressing project files and uploading to EAS Build. Learn more: https://expo.fyi/eas-build-archive ✔ Compressed project files 57s (138 MB) Failed to upload metadata to EAS Build Reason: Request failed: 400 (Bad Request) ✔ Uploaded to EAS 3m 50s ✔ Computed project fingerprint Build details: https://expo.dev/accounts/rashed_dev/projects/ghodrat-telecom-ultimate/builds/f6200150-b475-4904-b170-b3a87cadcc5a Waiting for build to complete. You can press Ctrl+C to exit. ✖ Build failed 🤖 Android build failed: Unknown error. See logs of the Prebuild build phase for more information.
Expo平台构建日志
Prebuild 1s sh: 1: expo: Permission denied npx expo prebuild --no-install --platform android exited with non-zero code: 126 Fail job 1s Build failed npx expo prebuild --no-install --platform android exited with non-zero code: 126
已尝试的解决方案
- 卸载重装项目依赖
- 重新安装Expo CLI(
npm install -g eas-cli) - 检查网络连接
内容的提问来源于stack exchange,提问作者Rashed Mohammadi
相关产品推荐
相关产品推荐

