I keep getting this issue while tring to refresh my gradle project.
I am using linux with oracle-jdk8
Gradle 'vortex' project refresh failed
Error:Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/3.5-20170305000422+0000/userguide/gradle_daemon.html
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
FAILURE: Build failed with an exception.
What went wrong:
Unexpected native library version loaded. Expected 24, was 19.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
I erased my ~/.gradle folder and it worked. It was somehow mixing up native-platform versions.
This seems to be a problem with gradle itself rather gradle-script-kotlin.
@diego-rocha-movile it worked. Thanks for the tip!
Closed as non reproducible, please reopen if you find a small repro.
I deleted ~/.gradle folder, but it still logs me the error Unexpected native library version loaded. Expected 21, was 25.
Hi @lusvelt, would you mind opening a new issue to provide more details about the error you're experiencing?
having the same problem as @lusvelt:
[slammer:~]$ gradle --version
FAILURE: Build failed with an exception.
* What went wrong:
Unexpected native library version loaded. Expected 21, was 25.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
adding the --stacktrace option doesn't change the output.
As a workaround, I downloaded gradle - which now works.
just remove gradle and reinstall using apt-get install gradle
Thanks for your tip @SimonLammer , removing gradle and installing it using sdk (I'm on Linux) worked perfectly well to remove that annoying error.
I had the same
Unexpected native library version loaded. Expected 21, was 25.
error and lack of debug output. I assumed it was due to an outdated Ubuntu package and went the route of updating gradle by adding a more recent ppa:
sudo add-apt-repository ppa:cwchien/gradle
sudo apt-get update
sudo apt upgrade gradle
And I no longer get the error.
Most helpful comment
I deleted ~/.gradle folder, but it still logs me the error
Unexpected native library version loaded. Expected 21, was 25.