#javafx #javafxports
#javafx #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'
}
Комментарии:
1. JavaFXPorts — это EOL. Он работает с JDK 1.8 и Gradle 4 или 5. Используйте клиентский плагин. Поддерживаются Maven или Gradle (но пока до 6.5).
2. Java 8 …? Думаю, тогда меньше вещей для изучения. Кстати, спасибо. Я буду придерживаться клиентского плагина.