I am creating a JavaFX app in Java 8.
Java 8 is required for JavaFXports.
I have installed absolutely everything required, but on gradle run, I receive this error:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'MealPlanner'.
> 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.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 1s
My Gradle.build is as follows:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.javafxports:jfxmobile-plugin:1.3.17'
}
}
apply plugin: 'org.javafxports.jfxmobile'
mainClassName = "src.main.java.MainScreen"
repositories {
jcenter()
}
jfxmobile {
ios {
forceLinkClasses = ['ensemble.**.*']
}
}
Similar questions have been asked and answered.
It's usually a problem with IntelliJ, and it was solved by updating it, OR by deleting the .gradle file and rebuilding.
However, I am using the Atom text editor, and have tried deleting .gradle, but it has not worked.
And, as you can see, I'm not overwriting anything to do with a 'debug' feature.