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

基于Gluon-mobile与Java9的iOS平台MultiView FXML项目构建

基于Gluon-mobile与Java9在iOS平台构建MultiView FXML项目教程

我来一步步带你搞定用Gluon-mobile搭配Java9在iOS平台搭建MultiView FXML项目,跟着步骤走就行:

  • 第一步:先创建一个全新的MultiView FXML项目,这是搭建的基础
  • 第二步:找到项目中的Gradle配置文件,添加Java9相关的配置内容,具体代码如下:
buildscript {
    repositories {
        jcenter()
        google()
        maven{ url 'http://nexus.gluonhq.com/nexus/content/repositories/releases' }
    }
    dependencies {
        classpath 'org.javafxports:jfxmobile-plugin:2.0.5'
    }
}

// 此处省略项目其他默认配置内容...

sourceCompatibility = 1.8
targetCompatibility = 1.8

// 此处省略项目其他默认配置内容...

dependencies {
    compile 'com.gluonhq:charm:4.4.0-jdk9'
    androidRuntime 'com.gluonhq:charm:4.4.1'
    compile 'com.airhacks:afterburner.mfx:1.6.3'
    // 可在此添加你需要的其他依赖
}

内容的提问来源于stack exchange,提问作者Viktor Stojanov

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.21 04:22:02