The only difference here is the “distclean”.
And this suggests that your first command had a locally cached engine, which was then removed by “distclean”. Then it needs to rebuild on the server again and that’s when you get the build error.
I see no error in your log.txt.
Regarding the editor log “CustomMessageMissingMethodException: Could not find method compile() for arguments [com.facebook.android:facebook-core:14.1.1] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
at org.gradle.internal.metaobject.AbstractDynamicObject$CustomMissingMethodExecutionFailed.(AbstractDynamicObject.java:190)” , only thing I can think of is that there is perhaps some version number mismatch? @agulev @britzl, any ideas ?