What does gradlew do

I have a project that was an eclipse project. And now I am using Android Studio with gradle 2.2.1. I found that when I create a project with Android Studio, it will generate a gradlew file, and it may include some CLI functions. But when I transfer my project from eclipse to Android Studio, I did not find my gradlew file. So here is my question: what does the gradlew file do? Can it be customized?

+8
android eclipse android-studio gradle gradlew
source share
1 answer

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.

+8
source share

All Articles