将我的项目升级到 Gluon Charm 4.3.0 涉及更新 build.gradle 中的依赖项。根据文档,我需要升级所有 4 个 charm 依赖项;基地和三个平台相关的。 http://docs.gluonhq.com/charm/4.3.0/#_adding_gluon_mobile_to_an_existing_project
当我尝试编译时,我收到“无法解析所有依赖项”的消息,事实上,如果我查看文档中提到的 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 插件。
另请查看 code changes在魅力下降。
如果您使用 Gluon IDE 插件创建一个新项目,您将看到新的 build.gradle
文件的外观。
关于java - Gluon 4.x.x 工件不在 Nexus 存储库中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41519348/