默默持有黑马股
默默持有黑马股
  • 发布:2025-04-12 11:25
  • 更新:2025-04-14 18:17
  • 阅读:96

【报Bug】UTS设置maven仓库无效

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Windows 10 教育版

HBuilderX类型: 正式

HBuilderX版本号: 4.57

手机系统: Android

手机系统版本号: Android 12

手机厂商: 小米

手机机型: MIUI 10

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

{
"dependencies": [
"com.arthenica:smart-exception-common:0.2.1",
"com.arthenica:smart-exception-java:0.2.1",
"com.arthenica:ffmpeg-kit-full-gpl:5.1.LTS"
],
"minSdkVersion": "21",
"project": {
"repositories": [
"maven { url 'https://maven.aliyun.com/repository/public' }"
]
}
}

操作步骤:

使用机密文件中插件包打自定义基座

预期结果:

正常打包

实际结果:

偶尔能打包成功(即使不自定义maven仓库也会偶尔打包成功,据说是缓存原因),大多数情况下会报错说无法找到仓库文件

bug描述:

我们正在使用插件市场的一个UTS插件,由于默认的maven仓库已经公告将逐步删除相关依赖文件,所以根据插件作者的指导,按照uni官方文档(https://doc.dcloud.net.cn/uni-app-x/plugin/uts-plugin.html)设置了maven的镜像仓库,但是打包的时候仍然报错,显示的还是默认maven仓库无法找到相关依赖,显然配置没有生效。

2025-04-12 11:25 负责人:无 分享
已邀请:
DCloud_App_Array

DCloud_App_Array

这是因为mavenCentral主仓库中存在“com.arthenica:ffmpeg-kit-full-gpl:5.1.LTS”,但下载不了。应该是官方已经下架了老版本,建议更新到最新版本。部分打包可以正常打包是因为存在缓存,这时使用的是缓存。

  • 天生DR

    因为这个第三方库 因为版权等问题 已经停止服务了


    FmpegKit has been officially retired. There will be no further ffmpeg-kit releases.


    See Saying Goodbye to FFmpegKit @ medium to learn why we made this decision.


    All previously released ffmpeg-kit binaries will be removed according to the following schedule.


    FFmpegKit Version Available Until

    Less than 6.0 February 1st, 2025

    6.0 April 1st, 2025

    Thank you for your support and interest in this project.


    作者已经删除了 相应的二进制包 最新版本现在也下不到了 具体可以查看 https://github.com/arthenica/ffmpeg-kit

    2025-04-15 08:44

要回复问题请先登录注册