Facebook javadocs are crashing builds

I don’t know where to look to fix this, running “gradle clean build” on our jenkins build server is failing for the following error:

‘’:libraries:facebook:androidJavadocs FAILED

*FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ‘:libraries:facebook:androidJavadocs’.

Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): ‘{PathToProject}libraries/facebook/build/tmp/androidJavadocs/javadoc.options’

This will cleanly compile on my computer, and works perfectly when invoked by Android Studio.
I have gone through, and both computers have the exact same everything in their relative $ANDROID_HOME folders.
the file it creates
I’m assuming this comes from the fact that we call compile project(':libraries:facebook') in build.gradle

Where do I put what code for gradle to ignore :libraries:facebook:androidJavadocs?
What is it that Facebook wants that it can’t find?

Maybe running with --debug will give you more hints on the problem?

–debug, --stacktrace, and the file it says it wrote all say the same thing as the normal output around the error unfortunately

I experienced a similar failure several weeks ago.

The failure was of a completely different task (not javadoc or Android), but the result was also that the output displayed like something specifically failed in the task and --debug or --stacktrace didn’t change the output.

My issue was the build running out of memory (even though the error message wasn’t a normal memory exception) which was revealed by watching the usage with jvmtop. Increasing the available memory resolved the issue.

I think the javadoc process crashed, probably from OOM. I would expect --info to give some logging on the return value of the javadoc process. Can you please check for that.