Android Studio 0.8.2 URI has a permissions component

I am getting "Gradle project sync failed". when i start android studio. When I try to clean up the project I get "Failed to complete Gradle execution Cause: URI has a permissions component"

I have tried several things already and am still stuck. I moved my config files out of my custom folders and put them in my root directory where I have Android Studio. (C: / studio). I also tried to invalidate the caches, but that still didn't help. I am on a network VDI so I am not sure if this can have anything to do with it. Below is the message I get from Gradle sync. Any ideas what might be wrong here?

Gradle Sync message:

Error: Unable to start daemon process. This problem can be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the user manual chapter on the daemon http://gradle.org/docs/1.12/userguide/gradle_daemon.html

Please read below the output of the process to learn more:

java.lang.IllegalArgumentException: The URI has an authority component in java.io.File. (File.java:423) at org.gradle.api.internal.classpath.EffectiveClassPath.findAvailableClasspathFiles (EffectiveClassPath.java:41) at org.gradle.api.internal.classpath.EffectiveClassPath. (EffectiveClassPath.java:32) at org.gradle.api.internal.classpath.DefaultModuleRegistry. (DefaultModuleRegistry.java:61) at org.gradle.api.internal.classpath.DefaultModuleRegistry. (DefaultModuleRegistry.java:55) at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit (ProcessBootstrap.java:41) at org.gradle.launcher.bootstrap.ProcessBootstrap.run (ProcessBootstrap.java.32) at launcher.daemon.bootstrap.GradleDaemon.main (GradleDaemon.java:22)

+3


source to share


2 answers


The only reason I can see this is because your home directory is on a network share (it has a Windows form path (\\ UNC_PATH \ ... instead of something like C: \ for a local file) . Gradle does not support this feature right now. There is a bug in Android Studio database to track it:

https://code.google.com/p/android/issues/detail?id=56444

and it is referring to a bug in the Gradleware error database:



https://issues.gradle.org/browse/GRADLE-2941

Android Studio Error Report lists this as a workaround:

I also faced the same problem. Reason: I figured out what could be when I installed Android Studio with the option - install for current user. This step. Installed .gradle folder in the organization. The path to the network. [\ {network} \ users {USERID} .gradle]

Resolution step: [On Windows 7 computer]

  • Copied .gradle folder from network path [\ {network} \ users {USERID} .gradle] to [C: \ Users {USERID} .gradle]

  • In Android Studio v- (beta) 0.8.6 [File -> Settings] changed Gradle Settings

    Global Gradle Settings

    Service directory path: C: / Users / {USERID} /. gradle

    Gradle VM Parameters: -Dhttp.proxyHost = {dummyHost} -Dhttp.proxyPort = {dummyPort} -Dhttp.proxyUser = {dummyUser} -Dhttp.proxyPassword = {dummyPassword}

I also gave Gradle VM options because it was trying to load Gradle -0.12 + -all.jar before compiling.

+5


source


if you don't have a strong internet connection, make sure you select offline mode from your console. Selecting offline mode may solve the problem.



0


source







All Articles