javafx - 使用 Gradle 6.6.1 构建 JavaFXPorts 项目时出错
问题描述
错误日志:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'Mobile'.
> Could not create task ':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.
无论如何,听说它不支持较新的 Gradle 版本 - 如果是这种情况,我应该降级到哪个旧版本的 Gradle?
我的 build.gradle:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.javafxports:jfxmobile-plugin:1.3.17'
}
}
apply plugin: 'org.javafxports.jfxmobile'
repositories {
jcenter()
}
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'application'
mainClassName = 'Mobile.Main'
dependencies {
testImplementation 'junit:junit:4.13'
}
解决方案
推荐阅读
- rust - 如何从 image::ImageBuffer 到 actix_web::HttpResponse
- shell - 比较 Unix 中两个文件的差异以产生 bool
- git - Git ssh 在 git gui 上不起作用,如何解决?
- python - 尝试使用“bokeh.io”创建散点图时出错
- c - 在代码块中使用 open() 系统调用时出现“没有这样的文件或目录”错误
- netty - 如何使用 Netty 发送多响应数据?
- javascript - 如何使用 Google App Script 缩小网页抓取的结果范围?
- sql - 如何列出数据库中的所有主键?
- npm - 升级 aws-cdk 导致 ENOENT 错误
- go - 在接口方法中传递与参数相同的接口