简体   繁体   中英

I started new application in my Android Studio, while syncing the files got error on Gradle syncing file

Error: Failed to create parent directory 'C:\\Users\\user1\\.gradle\\caches\\modules-2\\files-2.1\\org.sonatype.oss\\oss-parent\\9' when creating directory 'C:\\Users\\user1\\.gradle\\caches\\modules-2\\files-2.1\\org.sonatype.oss\\oss-parent\\9\\e5cdc4d23b86d79c436f16fed20853284e868f65'

When i am installing android studio i received an error "Error opening file for writing " relates to apache-9.pom file. I neglected and ignore that error now it is showing error project is not syncing and editing and debugging is not working.

  1. Clean project
  2. Rebuild project
  3. Sync Gradle if doesn't work try to check build tool

or - clean out the system caches:

On the main menu, choose File | Invalidate Caches/Restart. The Invalidate Caches message appears informing you that the caches will be invalidated and rebuilt on the next start. Use buttons in the dialog to invalidate caches, restart IntelliJ IDEA or both.

Gradle cache

Gradle cache locates at

On Windows: %USER_HOME%.gradle/caches On Mac/Unix: $HOME/.gradle/caches/ You can browse to these directory and manually delete it or run

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM