question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not create parent directory for lock file

See original GitHub issue

After 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
  1. Open a gradle project
  2. Try to run it
Current Result
Expected Result
Additional Informations

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:25 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
snjezacommented, Feb 4, 2019

@franciscocpg could you try the following:

cd <your_project>
export GRADLE_USER_HOME=~/.gradle
code .

``

2reactions
snjezacommented, Feb 5, 2019
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found