When i was trying to build a project for eclipse, i ran the below command gradlew eclipse and i got below error.
I searched in internet and found some solutions and finally the below solution is working for me. I executed below command and this fixed my issue.
'git add -f gradle/wrapper/gradle-wrapper.jar'
There are other solutions but this only worked for me.