I am getting Configuration with name ‘default’ not found error while trying to build the gradle project using gradle2.8 wrapper. This seems to be some environment related issue because this project builds fine for other users. I am getting All projects evaluated and then it throws this error.
I have pasted the trace below :
C:\Users<username>\projects\folder1\projectfolder>gradlew build --info
Starting Build
Settings evaluated using settings file ‘C:\Users<username>\projects\folder1\projectfolder\settings.gradle’.
Projects loaded. Root project using build file ‘C:\Users<username>\projects\folder1\projectfolder\build.gradle’.
Included projects: [root project ‘main’, project ‘:common’]
Evaluating root project ‘main’ using build file ‘C:\Users<username>\projects\folder1\projectfolder\build.gradle’.
Evaluating project ‘:common’ using build file ‘C:\Users<username>\projects\folder1\projectfolder\build.gradle’.
All projects evaluated.
Selected primary task ‘build’ from project :
FAILURE: Build failed with an exception.
- What went wrong:
Could not determine the dependencies of task ‘:compileJava’.
Configuration with name ‘default’ not found.
When I try to build this in IDEA Intellij, I get below error :
- What went wrong:
Could not determine the dependencies of task ‘:test’.
Configuration with name ‘default’ not found.