Gradle -v returns access denied (gradle installed is 2.2.1 and java is 1.8.0_25)

How fix this (it happens even if I do in administration mode)?

C:\Program Files\Android\Android Studio\gradle\gradle-2.2.1\bin>gradle -v Accesso negato.

C:\Program Files\Android\Android Studio\gradle\gradle-2.2.1\bin>java -version java version “1.8.0_25” Java™ SE Runtime Environment (build 1.8.0_25-b18) Java HotSpot™ 64-Bit Server VM (build 25.25-b02, mixed mode)

Under Android studio this problems returns:

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 http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html Please read the following process output to find out more: ----------------------- 00:35:46.585 [main] DEBUG o.g.l.daemon.bootstrap.DaemonMain - Assuming the daemon was started with following jvm opts: [-XX:MaxPermSize=256m, -XX:+HeapDumpOnOutOfMemoryError, -Xmx1024m, -Dfile.encoding=windows-1252, -Duser.country=IT, -Duser.language=it, -Duser.variant]

FAILURE: Build failed with an exception.

  • What went wrong: Could not create service of type DaemonContext using DaemonServices.createDaemonContext().

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Java HotSpot™ 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

Thank You for fix it and Helps!.

Sioux.