【问题标题】:Could not create task ':GluonApplicationApp:debug'无法创建任务“:GluonApplicationApp:调试”
【发布时间】:2020-07-23 15:13:51
【问题描述】:

我正在尝试简单地运行 Gluon 单场景示例。这是我的 gradle 输出:

Configuration on demand is an incubating feature.

> Configure project :GluonApplicationApp
Project :GluonApplicationApp => no module-info.java found

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':GluonApplicationApp'.
> Could not create task ':GluonApplicationApp:debug'.
   > Unnecessarily replacing a task that does not exist is not supported.  Use create() or register() directly instead.  You attempted to replace a task named 'debug', but there is no existing task with that name.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

我的 build.gradle:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'org.javafxports:jfxmobile-plugin:1.3.17'
    }
}

apply plugin: 'org.javafxports.jfxmobile'

repositories {
    jcenter()
    maven {
        url 'http://nexus.gluonhq.com/nexus/content/repositories/releases'
    }
}

mainClassName = 'com.gluonapplication.GluonApplication'

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

jfxmobile {
    downConfig {
        version = '3.8.6'
        // Do not edit the line below. Use Gluon Mobile Settings in your project context menu instead
        plugins 'display', 'lifecycle', 'statusbar', 'storage'
    }
    android {
        manifest = 'src/android/AndroidManifest.xml'
    }
}


buildscript {
    repositories {
        maven {
            url "https://plugins.gradle.org/m2/"
        }
    }
    dependencies {
        classpath 'org.openjfx:javafx-plugin:0.0.9'
    }
}
apply plugin: 'org.openjfx.javafxplugin'

我使用的 JDK 版本是 JDK 11,我尝试了各种 gradle 版本。对于我的 IDE,我使用 netbeans。

我整天都在尝试解决这个问题。请帮助

【问题讨论】:

标签: gradle gluon gluon-mobile


【解决方案1】:
  1. 我使用的是旧的 Gluon IDE 插件
  2. Gluon build 0.1.29-SNAPSHOT 修复了其余问题

有关问题的 cmets 的更多详细信息!

【讨论】:

    猜你喜欢
    • 2022-12-11
    • 2021-10-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-06-15
    • 1970-01-01
    相关资源
    最近更新 更多