This is due to the configuration of Windows, possibly through Group Policy. The native-platform.dll file is extracted from one of the JAR files and is probably placed in a folder in the user's home directory, for example c: \ Users \% USERNAME% \ Local Settings \ Temp. To protect against malware, loading DLLs and executing programs from TMP directories can be disabled.
I have a problem with the same symptoms, and in some cases I managed to get around this by setting the TEMP and TMP environment variables outside the user's directory, for example c: \ tmp. This was not a universal solution and did not work for gradle. The location where Gradle retrieves the DLL can be overwritten by setting GRADLE_OPTS to indicate the desired location. This might work for you:
C: \ mkdir C: \ tmp
C: \ set GRADLE_OPTS = "- Dorg.gradle.native.dir = / tmp"
source share