赞
踩
序言:
今天发现原来Gradle配置还有这么高级的玩法,记录一下,以备忘!备注:我使用的Android Studio版本是3.0.1
正文:
利用build.gradle文件和gradle.properties两个文件实现的!
1、gradle.properties文件在工程根目录下!给出我的示例:
- # Project-wide Gradle settings.
-
- # IDE (e.g. Android Studio) users:
- # Gradle settings configured through the IDE *will override*
- # any settings specified in this file.
-
- # For more details on how to configure your build environment visit
- # http://www.gradle.org/docs/current/userguide/build_environment.html
-
- # Specifies the JVM arguments used for the daemon process.
- # The setting is particularly useful for tweaking memory settings.
- org.gradle.jvmargs=-Xmx1536m
-
- # When configured, Gradle will run in incubating parallel mode.
- # This option should only be used with decoupled projects. More details, visit
- # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decouple

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。