gradlew is for the gradle shell, which can allow your project to be environment independent. For example, on a CI server, if your project brings a gradle shell, then you do not need to install gradle in the environment.
If you create a project using android studio, it will by default create a gradle shell in your project.
You can see more information in the Gradle wrapper.
Leo lin
source share