I migrated some of my projects from Gradle 3.3 to Gradle 3.4 and I immediately noticed the following error on my build servers.
23-Feb-2017 03:18:56 FAILURE: Build failed with an exception.
23-Feb-2017 03:18:56
23-Feb-2017 03:18:56 * What went wrong:
23-Feb-2017 03:18:56 Failed to load native library 'libnative-platform.so' for Linux amd64.
23-Feb-2017 03:18:56
23-Feb-2017 03:18:56 * Try:
23-Feb-2017 03:18:56 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
I tried cleaning up the files under ~/.gradle, restarting the offending Bamboo build agent but this didn’t fix the issue. This issue is clearly caused by the upgrade to 3.4 because as soon as I revert to 3.3, the build works again.
Googling the error message doesn’t really shed light on what the problem is.
Any idea what could cause this ?
This issue can be reproduced with any build (even one whose Gradle script is empty) as the error occurs prior even starting Gradle.
Note: this error doesn’t occur on my Mac, it only happens when running on our build servers.
Same here when we upgraded to 3.4. I just had to rollback to 3.0. When I switch back to 3.0 the problem goes away. I’ve seen this before with previous upgrades. We’d like to see this resolved ASAP. Thanks.