Abhishek mura wrote:Execution failed for task ':compile'.
> srcdir attribute must be set!
I'm no Gradle expert, but if I got an error message which says "srcdir attribute must be set", the first thing I would try would be to set the srcdir attribute. I notice that your "compile" task doesn't have any such attribute, too, so it shouldn't be too hard to put one in. So why don't you try that? Let us know if you continue to have problems.
posted 4 years ago
I have the srcdir attribute added to the task already..
<javac srcdir="src/main/java" destdir="build/classes" debug="on">