You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用eas build构建Expo Android生产包时Gradle构建失败求助

Expo Android生产构建报错求助

我使用命令eas build -p android --profile production构建Expo Android生产安装包,连续多日遇到同一错误,网上未找到可行解决方案,特此求助。

项目package.json配置

{  
  "name": "base",  
  "version": "1.0.0",  
  "main": "node_modules/expo/AppEntry.js",  
  "scripts": {    
    "start": "expo start",    
    "android": "expo run:android",    
    "ios": "expo run:ios",    
    "web": "expo start --web"  
  },  
  "dependencies": {    
    "@expo/config-plugins": "~7.2.2",    
    "@iabtcf/core": "^1.5.6",    
    "@react-navigation/native": "^6.1.7",    
    "@react-navigation/native-stack": "^6.9.13",    
    "expo": "~49.0.5",    
    "expo-dev-client": "~2.4.6",    
    "expo-splash-screen": "^0.20.5",    
    "expo-status-bar": "~1.6.0",    
    "expo-system-ui": "^2.4.0",    
    "expo-updates": "~0.18.11",    
    "jetifier": "^2.0.0",    
    "react": "18.2.0",    
    "react-dom": "18.2.0",    
    "react-native": "0.72.3",    
    "react-native-gesture-handler": "~2.12.0",    
    "react-native-google-mobile-ads": "^11.6.1",    
    "react-native-safe-area-context": "4.6.3",    
    "react-native-screens": "~3.22.0"  
  },  
  "devDependencies": {    
    "@babel/core": "^7.20.0"  
  },  
  "private": true
}

错误详情

构建过程在Run gradlew阶段失败,相关错误日志关键片段可补充提供以便进一步排查。


内容的提问来源于stack exchange,提问作者Priyanshu kuntal

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.14 02:20:55