Unnecessarily replacing a task that does not exist is not supported
Clear the cache and start the app again. This might happen when you recently upgraded gradle. If you are on intellij idea then choose file -> invalidate cache and restart.
If you are using gradle then delete your .gradle folder and run gradle again.
If you are using Intellij idea, this might help: Settings -> Build, Execution, Deployment -> Gradle -> Build and run using: IntelliJ IDEA
Quoting an answer on a GitHub issue for the Gradle project from November 15th 2019:
This is coming from a long deprecated behavior that was finally made an error in Gradle 6.0. Unfortunately, we're not going to restore the old behavior, but we'll work with JetBrains to make this sort of thing work without requiring special handling on IDEA's side.
This is already fixed in IntelliJ IDEA 2019.3 (in beta now). If you can upgrade to the 2019.3 EAP or beta, this should work there.
Update IntelliJ to the latest stable version to fix this issue. At the time of this writing, 2019.3.1 is the latest stable release of IntelliJ IDEA.