Error:
Java. Lang. Throwable: Unable to determine gradle tasks to execute
At com. Intellij. Openapi. The diagnostic. Logger. The error (137) Logger. Java:
At com. Android. Tools. Idea. Gradle. Run. DefaultGradleBuilder. Build (42 DefaultGradleBuilder. Java:)
At com. Android. Tools. Idea. Gradle. Run. MakeBeforeRunTaskProvider. DoExecuteTask (MakeBeforeRunTaskProvider. Java: 360)
At com. Android. Tools. Idea. Gradle. Run. MakeBeforeRunTaskProvider. ExecuteTask (MakeBeforeRunTaskProvider. Java: 268)
At com. Android. Tools. Idea. Gradle. Run. MakeBeforeRunTaskProvider. ExecuteTask (MakeBeforeRunTaskProvider. Java: 122)
At com. Intellij. Execution. Impl. ExecutionManagerImpl. Lambda $compileAndRun $0 (317) ExecutionManagerImpl. Java:
At com. Intellij. Openapi. Application. Impl. ApplicationImpl $1. The run (ApplicationImpl. Java: 314)
The at Java. Util. Concurrent. Executors $RunnableAdapter. Call (511) Executors. Java:
The at Java. Util. Concurrent. FutureTask. Run (FutureTask. Java: 266)
The at Java. Util. Concurrent. ThreadPoolExecutor. RunWorker (ThreadPoolExecutor. Java: 1142)
The at Java. Util. Concurrent. ThreadPoolExecutor $Worker. The run (ThreadPoolExecutor. Java: 617)
The at Java. Lang. Thread. The run (Thread. Java: 745)
CodePudding user response:
Delete. The idea and on iml, then reintroduced to the project.Want to know the detailed reasons, see here
https://stackoverflow.com/questions/17614477/gradle-failure-could-not-determine-which-tasks-to-execute