Gluon 4.x.x 工件不在 Nexus 存储库中?

Gluon 4.x.x artifacts not in the Nexus repo?

将我的项目升级到 Gluon Charm 4.3.0 涉及更新 build.gradle 中的依赖项。根据文档,我需要升级所有 4 个 charm 依赖项;基地和三个平台相关的。 http://docs.gluonhq.com/charm/4.3.0/#_adding_gluon_mobile_to_an_existing_project

当我尝试编译时,我得到一个 "could not resolve all dependencies",事实上,如果我看一下文档中提到的 Nexus 存储库,我确实看到了 4.3.0 的基础,但所有平台基于神器的最高只能达到 3..http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm/ http://nexus.gluonhq.com/nexus/content/repositories/releases/com/gluonhq/charm-android/

回购搬家了吗?

有一件事你是对的:不存在 Charm 4+ 平台依赖项。

问题是您链接的文档中的错误,因为第 2.5.8 节不再有效:如果您继续阅读第 8 章 (migration guide),您将看到:

Gluon Mobile 4 requires only one dependency declaration instead of the four declarations that were needed previously. That will include the dependencies to Charm Glisten and Gluon Connect.

所以你现在需要的只是这个单一的 Charm 依赖项:

dependencies {
    compile 'com.gluonhq:charm:4.3.0'
}

还有这个:

jfxmobile {
    downConfig {
        version '3.2.0'
        plugins 'display', 'lifecycle', 'statusbar', 'storage'
    }
    android { ... }
}

至于所需的 Charm Down 插件。

也可以看看 Charm Down 中的 code changes

如果您使用 Gluon IDE 插件创建一个新项目,您将看到新 build.gradle 文件的外观。