title: Could not create task ':debug'. Unnecessarily replacing a task that does not exist is not supported
body: <p>I am creating a JavaFX app in Java 8.</p>
  
  <p>Java 8 is required for <a href="https://docs.gluonhq.com/javafxports/" rel="nofollow noreferrer">JavaFXports</a>. </p>
  
  <p>I have installed absolutely everything required, but on gradle run, I receive this error:</p>
  
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  A problem occurred configuring root project 'MealPlanner'.
  &gt; Could not create task ':debug'.
     &gt; 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
  </code></pre>
  
  <p>My Gradle.build is as follows:</p>
  
  <pre><code>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.**.*']
      }
  }
  </code></pre>
  
  <p>Similar questions have been asked and answered.</p>
  
  <p>It's usually a problem with IntelliJ, and it was solved by updating it, OR by deleting the .gradle file and rebuilding.</p>
  
  <p>However, I am using the Atom text editor, and have tried deleting .gradle, but it has not worked.</p>
  
  <p>And, as you can see, I'm not overwriting anything to do with a 'debug' feature.</p>