Could not create parent directory for lock file
See original GitHub issueAfter upgrading visual code and this extension I’m seeing the following error when opening my gradle projects and trying to run it.
[Error - 11:07:49] 29/01/2019 11:07:49 Error occured while building workspace. Details:
message: Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-4.10-bin.zip'.
Could not create parent directory for lock file /usr/share/java/gradle/wrapper/dists/gradle-4.10-bin/bg6py687nqv2mbe6e1hdtk57h/gradle-4.10-bin.zip.lck;code: 0
Environment
-
Operating System: Antergos Linux 4.20.4-arch1-1-ARCH
-
JDK version: openjdk version “1.8.0_202”
-
Visual Studio Code version: 1.30.2
-
Java extension version: 0.37.0
Steps To Reproduce
- Open a gradle project
- Try to run it
Current Result
Expected Result
Additional Informations
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:25 (8 by maintainers)
Top Results From Across the Web
Could not create parent directory for lock file - Stack Overflow
In my case, the issue appears to have been caused by using the "Use gradle 'wrapper' task configuration" option in Android Studio/IntelliJ. As ......
Read more >Could not create parent directory error when compiling gradle ...
Hi, I am consistently getting following error and I am no more able to user Intellij for development. None of my existing Gradle...
Read more >[Gradle] Cannot create parent directory for lock file · Issue #817
Hi, are you running the command as root? Cause the error seems to indicate that the process cannot create a parent directory under...
Read more >Gradle sync failed , android studio could not create parent ...
Open Android Studio > File > Settings > Under Service directory path is correct. Make sure you don't have an offline location that...
Read more >Could not create parent directory for lock file gradle jobs
Search for jobs related to Could not create parent directory for lock file gradle or hire on the world's largest freelancing marketplace with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@franciscocpg could you try the following:
``
@franciscocpg @psxvoid Thanks.