uni-app HB打包失败

发布于 1周前 作者 wuwangju 来自 Uni-App

uni-app HB打包失败

| 开发环境 | 版本号 | 项目创建方式 |
| --- | --- | --- |
| Windows | windows 11 | HBuilderX |

产品分类:  
uniapp/App  

PC开发环境操作系统:  
Windows  

PC开发环境操作系统版本号:  
windows 11  

HBuilderX类型:  
正式  

HBuilderX版本号:  
3.4.13  

手机系统:  
Android  

手机系统版本号:  
Android 12  

手机机型:  
  

页面类型:  
vue  

vue版本:  
vue2  

打包方式:  
云端  

示例代码:

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ‘:app:checkReleaseAarMetadata’.

Could not resolve all files for configuration ‘:app:releaseRuntimeClasspath’. Could not download usb-serial-for-android-3.0.0.aar (com.github.mik3y:usb-serial-for-android:3.0.0) Could not get resource ‘https://jitpack.io/com/github/mik3y/usb-serial-for-android/3.0.0/usb-serial-for-android-3.0.0.aar’. Could not GET ‘https://jitpack.io/com/github/mik3y/usb-serial-for-android/3.0.0/usb-serial-for-android-3.0.0.aar’. Remote host closed connection during handshake

  • Try: Run with --debug option to get more log output. Run with --scan to get full insights.

操作步骤:

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ‘:app:checkReleaseAarMetadata’.

Could not resolve all files for configuration ‘:app:releaseRuntimeClasspath’. Could not download usb-serial-for-android-3.0.0.aar (com.github.mik3y:usb-serial-for-android:3.0.0) Could not get resource ‘https://jitpack.io/com/github/mik3y/usb-serial-for-android/3.0.0/usb-serial-for-android-3.0.0.aar’. Could not GET ‘https://jitpack.io/com/github/mik3y/usb-serial-for-android/3.0.0/usb-serial-for-android-3.0.0.aar’. Remote host closed connection during handshake

  • Try: Run with --debug option to get more log output. Run with --scan to get full insights.

预期结果:  
正常打包  

实际结果:  
不能打包  

bug描述:

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ‘:app:checkReleaseAarMetadata’.

Could not resolve all files for configuration ‘:app:releaseRuntimeClasspath’. Could not download usb-serial-for-android-3.0.0.aar (com.github.mik3y:usb-serial-for-android:3.0.0) Could not get resource ‘https://jitpack.io/com/github/mik3y/usb-serial-for-android/3.0.0/usb-serial-for-android-3.0.0.aar’. Could not GET ‘https://jitpack.io/com/github/mik3y/usb-serial-for-android/3.0.0/usb-serial-for-android-3.0.0.aar’. Remote host closed connection during handshake

  • Try: Run with --debug option to get more log output. Run with --scan to get full insights.

6 回复

你这个依赖库需要配置仓储地址才能下载到,目前不支持 你可以暂时已aar形式集成到插件里


以前是可以打的包的呀

回复 战力不足五: “以前是可以打的包的呀”不确定你说的是否真实。但我看usb-serial-for-android的要求是要配置 maven { url ‘https://jitpack.io’ } 的 链接

回复 DCloud_Android_ST: 项目是我自己写的,我可以很确定的是以前可以打包,项目都上线了,只是昨天需要 重新打一个测试包,然后发现突然之间就没法打包了。

回复 战力不足五: 你重新打包试试 两种情况 一种是开发者从远端仓储删了 必须通过maven { url ‘https://jitpack.io’ }下载。你本地有缓存所以不需要重新下载。 第二种 打包机网络问题 可以尝试重新打包试下

回到顶部
AI 助手
你好,我是IT营的 AI 助手
您可以尝试点击下方的快捷入口开启体验!