当前位置:   article > 正文

Android Studio开发之Gradle配置格式化---基础版_.gradle 格式化

.gradle 格式化

序言:

今天发现原来Gradle配置还有这么高级的玩法,记录一下,以备忘!备注:我使用的Android Studio版本是3.0.1

正文:

利用build.gradle文件和gradle.properties两个文件实现的!

1、gradle.properties文件在工程根目录下!给出我的示例:

  1. # Project-wide Gradle settings.
  2. # IDE (e.g. Android Studio) users:
  3. # Gradle settings configured through the IDE *will override*
  4. # any settings specified in this file.
  5. # For more details on how to configure your build environment visit
  6. # http://www.gradle.org/docs/current/userguide/build_environment.html
  7. # Specifies the JVM arguments used for the daemon process.
  8. # The setting is particularly useful for tweaking memory settings.
  9. org.gradle.jvmargs=-Xmx1536m
  10. # When configured, Gradle will run in incubating parallel mode.
  11. # This option should only be used with decoupled projects. More details, visit
  12. # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decouple
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/266173?site
推荐阅读
相关标签
  

闽ICP备14008679号