Tool-Chains Native Sample Doesn't Build (Gradle 4.3.1)

(Scott Palmer) #1

$ cd /opt/gradle-4.3.1/samples/native-binaries/tool-chains
$ /opt/gradle-4.3.1/bin/gradle

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().

Could not create service of type CrossBuildFileHashCache using BuildSessionScopeServices.createCrossBuildFileHashCache().

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at


(Sterling Greene) #2

Hi @swpalmer,

This looks like it might be some kind of permissions issue (GRADLE_USER_HOME read-only or wrong user?) that is hidden in the noise.

Could you run the build again with --scan and see if that generates a build scan?

(Scott Palmer) #3

I think that is the issue… I’m just clueing in now to the fact that the samples directory is not world writable. It was just the real error being hidden as you say.