我已根据需要安装了 Android Studio 和 gradle,但在创建新项目时出现此错误
com.intellij.openapi.options.ConfigurationException: Failed to import new Gradle project: Could not fetch model of type 'IdeaProject' using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'.
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/1.6/userguide/gradle_daemon.html
Please read below process output to find out more:
-----------------------
java.lang.IllegalArgumentException: URI has an authority component
at java.io.File.<init>(File.java:397)
at org.gradle.api.internal.classpath.EffectiveClassPath.findAvailableClasspathFiles(EffectiveClassPath.java:41)
at org.gradle.api.internal.classpath.EffectiveClassPath.<init>(EffectiveClassPath.java:32)
at org.gradle.api.internal.classpath.DefaultModuleRegistry.<init>(DefaultModuleRegistry.java:61)
at org.gradle.api.internal.classpath.DefaultModuleRegistry.<init>(DefaultModuleRegistry.java:55)
at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:41)
at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:32)
at org.gradle.launcher.daemon.bootstrap.GradleDaemon.main(GradleDaemon.java:22)
经过大量搜索,我认为这是由于 .gradle 文件夹位于公共服务器上。"\ServerName\UserProfiles\naveen\.gradle" 并且 AndroidStudio 无法访问它。我还尝试更改 Configure->Settings->gradle->ServiceDirectoryPath 中的路径,但它不会让我改变它。与 Android Studio 相关的 SO 上的所有问题都与我在这里所拥有的没有任何关系。
那么有没有办法改变路径或者在AndroidStudio中编辑一些文件,我可以从中改变Gradle Path并使其成为静态。我不想将我的计算机与服务器或类似的东西断开链接。