uni-app Hbuilderx3.1.17 安卓云打包报错,无法打包
uni-app Hbuilderx3.1.17 安卓云打包报错,无法打包
| 开发环境 | 版本号 | 项目创建方式 |
|---|---|---|
| Windows | win10 | |
| HBuilderX | 3.1.17 |
bug描述:
-
get manifestOutputDirectory error
-
FAILURE: Build failed with an exception.
-
What went wrong:
- Execution failed for task ‘:app:compileReleaseJavaWithJavac’.
- Could not resolve all files for configuration ‘:app:releaseCompileClasspath’.
- Could not download fastjson-1.1.71.android.jar (com.alibaba:fastjson:1.1.71.android)
- Could not get resource ‘http://maven.aliyun.com/nexus/content/groups/public/com/alibaba/fastjson/1.1.71.android/fastjson-1.1.71.android.jar’.
- Could not GET ‘http://maven.aliyun.com/nexus/content/groups/public/com/alibaba/fastjson/1.1.71.android/fastjson-1.1.71.android.jar’. Received status code 403 from server: Forbidden
-
Try:
- Run with --debug option to get more log output. Run with --scan to get full insights.
-
Exception is:
- org.gradle.api.tasks.TaskExecutionException: Execution failed for task ‘:app:compileReleaseJavaWithJavac’.
- Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ‘:app:releaseCompileClasspath’.
-
Caused by:
- org.gradle.internal.resolve.ArtifactResolveException: Could not download fastjson-1.1.71.android.jar (com.alibaba:fastjson:1.1.71.android)
- Caused by: org.gradle.api.resources.ResourceException: Could not get resource ‘http://maven.aliyun.com/nexus/content/groups/public/com/alibaba/fastjson/1.1.71.android/fastjson-1.1.71.android.jar’.
- Caused by: org.gradle.internal.resource.transport.http.HttpErrorStatusCodeException: Could not GET ‘http://maven.aliyun.com/nexus/content/groups/public/com/alibaba/fastjson/1.1.71.android/fastjson-1.1.71.android.jar’. Received status code 403 from server: Forbidden
BUILD FAILED in 39s
gradle build error: 1
更多关于uni-app Hbuilderx3.1.17 安卓云打包报错,无法打包的实战教程也可以访问 https://www.itying.com/category-93-b0.html
2 回复
是不是你们Dclound网络又挂了,快点修复下,云打包已经失败2次了,都是同样的日志
更多关于uni-app Hbuilderx3.1.17 安卓云打包报错,无法打包的实战教程也可以访问 https://www.itying.com/category-93-b0.html
从错误信息看,这是典型的依赖包下载失败问题。主要原因是阿里云Maven仓库中的fastjson-1.1.71.android.jar无法下载,返回403状态码。
解决方案:
-
清理Gradle缓存
- 删除项目根目录下的
.gradle文件夹 - 重新执行打包
- 删除项目根目录下的
-
切换Maven仓库源
- 在项目
manifest.json中配置使用官方Maven仓库 - 或修改项目中的
build.gradle文件,将仓库地址改为:maven { url 'https://maven.aliyun.com/repository/public' }
- 在项目

