Expo v48构建APK时出现gradlew错误,请求排查问题原因
Expo EAS构建Android APK时出现Gradlew错误
环境与执行命令
- Node版本:18.16.0
- 执行命令:
eas build -p android --profile preview
错误详情
构建过程中触发Gradlew相关错误,核心错误信息如下:
- 主错误提示:
Could not determine the dependencies of task ':app:packageRelease'.,关联问题为Could not resolve all task dependencies for configuration ':app:releaseRuntimeClasspath'. - 日志末尾错误:
Failed to transform react-native-webview-11.26.0.aar (from :react-native-webview) to match attributes...,伴随资源解析失败的具体提示
相关配置文件
eas.json
{ "cli": { "version": ">= 3.14.0" }, "build": { "development": { "developmentClient": true, "distribution": "internal" }, "preview": { "distribution": "internal", "android": { "buildType": "apk" } }, "production": {} }, "submit": { "production": {} } }
package.json
{ "name": "app-name", "version": "1.0.0", "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "expo start", "android": "expo start --android", "ios": "expo start --ios", "web": "expo start --web" }, "dependencies": { "expo": "~48.0.18", "expo-constants": "~14.2.1", "expo-splash-screen": "~0.18.2", "expo-status-bar": "^1.4.4", "react": "18.2.0", "react-native": "0.71.8", "react-native-webview": "11.26.0" }, "devDependencies": { "@babel/core": "^7.20.0" }, "private": true }
内容的提问来源于stack exchange,提问作者Shamxeed
相关产品推荐
相关产品推荐

