Solved: react native clear gradle cache

The main problem with using a real-time cache for gradle is that it can slow down your builds. By default, gradle uses a local cache that is stored on the machine where gradle is running. If you are using a remote repository, the cache will be stored on the server where the repository is located. However, if you are working with a local repository, the cache will be stored on your machine.


You can clear the Gradle cache in React Native by running the following command:

./gradlew cleanBuildCache

This command will clear the Gradle cache.

What is Cache

Cache is a mechanism that helps to improve the performance of React Native applications. It allows the app to store data locally so that it can be accessed more quickly.

What is Gradle

Gradle is a build automation system for Java, Groovy, and Scala. It can be used to automate the build process for software projects. In React Native, Gradle can be used to automate the build process for native mobile apps.

Related posts:

Leave a Comment