Gradle sync failed access is denied in android studio

后端 未结 9 2302
南旧
南旧 2021-01-02 11:09

Can someone please explain to me what this error is and how to resolve this error?

Gradle sync failed: D:\\SoundsandPictures.gradle\\4.4\\fileHashes\\

9条回答
  •  悲&欢浪女
    2021-01-02 11:45

    Goto File -> Invalidate caches / Restart

    Shutdown Android Studio

    Rename/remove .gradle folder in the user home directory

    Restart Android Studio (It will download gradle metadata and data)

    Gradle build succeed

    Rebuild project. Done.

    EDIT

    Try this for Mac OS

    Go to SDK manager (with Administrator rights), scroll down till the end, download "Android Support Library".

    And it works (don't forget Administrator rights).

    Reference this SO Question..

提交回复
热议问题