What is gradle wrapper and gradlew.bat file?

前端 未结 3 675
Happy的楠姐
Happy的楠姐 2020-12-25 12:59

Lately I came to know the power of Gradle as a build system and as an Android developer I wanna understand it deeply .

One article said the following :-

3条回答
  •  攒了一身酷
    2020-12-25 13:38

    1. gradlew.bat IS the Gradle Wrapper (for Windows in this case). Gradle Wrapper is just a small utility that will ensure that Gradle is installed (or install it if necessary) so you can always build the project. Gradle itself allows you to manage dependencies and build configurations for your project.

    2. If you have installed Android Studio, you have Gradle installed and are good to go. (Technically, each project will have it's own wrapper to handle installing/using Gradle)

    3. As I mentioned above, you are good to go.

    In the end Gradle is a command line tool that you use to build your project and you could very well use that directly (though you don't have to) since it is exactly what Android Studio uses to build your project.

提交回复
热议问题