Updated Android Studio from version 2.3 to 3.1 Canary. But there seems to be a huge problem with Gradle.
Error:java.nio.file.AccessDeniedException: /home/pathname/.android/build-cache.lock
What I did:
- Deleted
.gradle, thought it will solve the issue, but not, after rebuilding the project,.gradleagain appears. - Deleted all android related things from system (SDK, Android Studio and remaining projects) and from zero started to download Android Studio with all required packages. Still, the same problem.
- Changed android studio version from 3.1 canary to 3.0, also no success.
- Looked at this post, but didnt help.
- Read in some posts that this happens when Android Studio is corrupted. but I have downloaded from official site.
Any ideas how to fix it?