There would be two possible reasons.
ant clean all
Executing setantenv.bat before executing ant clean all command solved error in my case.
setantenv.bat