Gradle plugin not working in Intellij IDEA (Calculate graph task)?

The problem is that the Gradle plugin in Intellij IDEA does not work with my project. If I use "Gradle build" on the command line, it works fine, but if I try to build a project using the Gradle plugin in Intellij IDEA, it does not work. This shows some error in the task "Calculate the schedule of the task." What is it?

enter image description here

Why is this not working?

Here is the console output:

6:21:57 PM: Executing external tasks 'gradle build'... FAILURE: Build failed with an exception. * What went wrong: Task 'gradle' not found in root project 'upload-server'. * Try: Run gradle tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 3.899 secs Task 'gradle' not found in root project 'upload-server'. 6:22:01 PM: External tasks execution finished 'gradle build'. 
+7
source share
4 answers

The problem was that I used the "gradle build" command in the plugin to build the project, but in the gradle plugin you do not need to use the "gradle" before the task.
So, I run the "build" command, and now it works.

+7
source

To see the error message, click this icon in the upper left corner. It will switch between the console output view and another view.

+9
source

I faced the same problem. when I used build.gradle (module.app) the version was different.

  compile 'com.google.firebase:firebase-core:11.0.0' compile 'com.google.android.gms:play-services-auth:11.0.1' 

Build> clean up the project I saw exactly the problem that was noticed when starting the project.

just fix the version and run the project

  compile 'com.google.firebase:firebase-core:11.0.0' compile 'com.google.android.gms:play-services-auth:11.0.0' 
+1
source

add to your build.gradle. and clean your project. show your task.

 repositories { mavenCentral() } 
-1
source

All Articles