Using gradle 2.4 in Android Studio

2019-07-20 09:22发布

问题:

I'd like to use the latest version of Gradle in Android Studio. How do I check which version is used, and how do I upgrade to the latest one (if it is supported)? I would like to upgrade because I read that the latest version of Gradle improves build times.

回答1:

You can check current Gradle version in Project Structure (File -> Project Structure...).

You can change default Gradle by using local distribution. However, I am not sure if Android Studio can support Gradle 2.4. Maybe you can have a try. Or you can change gradle-wrapper.properties directly.