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

使用GitHub Actions构建Android JavaFx应用时静态库下载失败

解决GitHub Actions构建Android JavaFX应用时vmone静态库下载404问题

问题分析

构建过程中触发如下错误:

Error downloading zips: java.io.IOException: Error downloading link from https://github.com/gluonhq/vmone/releases/download/gvm-24-2.1/vmone-android-linux-aarch64.zip. Unexpected status code: 404 during build, so not able to try on Android at the moment.

根源是gluonhq/vmone仓库已被移除或转为私有,导致对应的静态库压缩包完全无法访问。

可行解决方案

  • 升级Gluon构建插件及依赖:检查项目中使用的gluonfx-maven-plugin或gluonfx-gradle-plugin版本,升级至最新稳定版。新版本大概率已替换vmone的依赖源,改用Gluon官方维护的分发渠道。
  • 指定本地静态库路径:若暂时无法升级插件,可从Gluon官方合法渠道获取兼容的Android JavaFX静态库,然后在构建配置中指定本地路径绕开失效的远程下载。以Maven为例,在插件配置中添加:
    <configuration>
        <staticLibraryPath>/本地静态库所在路径</staticLibraryPath>
    </configuration>
    
  • 切换至Gluon官方最新构建流程:核对项目是否遵循Gluon当前的Android构建规范,移除旧的vmone相关配置,改用官方推荐的工具链与依赖管理方式。

内容的提问来源于stack exchange,提问作者Hallvard Trøtteberg

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.14 06:55:52