In order to clear the cache of Gradle on the Mac running on macOS follow the below steps.
- Open Terminal App,
- Now run the command: ~/.gradle/caches/ to navigate to the Gradle caches under your home directory.
- Now run command open . to open the current Caches directory in Finder.
- Delete all the Cache you want to.

Delete Gradle Cache using gradle command
- Open Terminal App,
- Run the command: gradle cleanBuildCache (or can even use ./gradlew cleanBuildCache)
Delete Gradle Cache using Android Studio IDE
- Open Android Studio App,
- Go to File -> Invalidate Caches... -> Invalidate Caches and Restart

-
Have Questions? Post them here!
More Posts related to Gradle,
- Find installed Gradle version command
- How to Clear Gradle Cache on Mac
- Generate Project Dependency tree using Gradle Command
- How to create Gradle Multi-Project in IntelliJ
- Adding Jackson dependency to Java Gradle Project
- How to run Gradle build in offline mode
- Gradle FAILURE: Build failed with an exception - Task not found in root project
- Install Gradle VS Code for Java Projects
- Create a Gradle Java Project in VS Code
- Run IntelliJ Java main method without Gradle build
- Installing Gradle on macOS - Gradle Tutorial
- Task is ambiguous in root project gradle-examples. Candidates are: myTask1, myTask2
More Posts:
- Step-by-Step: Setting up Docker + Ubuntu Linux + Git + GitHub Tutorial - Git
- Java JDBC IN Clause Example with PreparedStatement MySQL - Java
- How to enable Do Not Disturb (DND) mode in Microsoft Teams - Teams
- Get Absolute Relative Path of File in IDEA IntelliJ - Java
- Hide cURL Outputs and Errors on Terminal - cURL
- Find and Replace Multiple different words with the same word in a text file - NotepadPlusPlus
- [Fix] java.time.zone.ZoneRulesException: Unknown time-zone ID - Java
- Program 7: Find Difference of Two Numbers - 1000+ Python Programs - Python-Programs