gradle.properties 里面配置的东西,在gradle 文件里面可以直接引用。

例如:

在你工程根目录的gradle.properties 文件里面

可以这样配置:

## Project-wide Gradle settings.
#
# 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.
# Default value: -Xmx1024m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
#
# 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:decoupled_projects
# org.gradle.parallel=true
#Thu Oct 26 18:42:58 CST 2017
systemProp.http.proxyHost=59.151.100.45
systemProp.http.nonProxyHosts=192.168.*
systemProp.http.proxyPort=33130 r2d2Dir=D:\\soft\\r2d22
r2d2Cmd=python ANDROID_BUILD_SDK_VERSION=27

那么在你的build.gradle 里面,你就可以:

android {
buildToolsVersion ANDROID_BUILD_SDK_VERSION

参看:http://www.cnblogs.com/if-else-if/p/5972530.html

https://docs.gradle.org/current/userguide/build_environment.html

最新文章

  1. python基础之day1
  2. 修改Credentials 密码
  3. 【Java EE 学习 25 下】【网上图书商城js小技术点总结】
  4. Java基础-String 存储机制管理
  5. 可复用的js效果
  6. vim之grep
  7. sql server 清除日志
  8. 阐明iOS证书和provision文件
  9. Stammering Aliens
  10. 使用JS开发桌面端应用程序NW.js-3-开发问题小记
  11. 如何让浏览器支持ES6语法,步骤详细到小学生都能看懂!
  12. Python爬虫入门教程 23-100 石家庄链家租房数据抓取
  13. Java使用J4L识别验证码
  14. oracle 修改用户密码
  15. 转发:已知rsa的模数和指数 生成pem公钥文件
  16. Effective Java 第三版——68. 遵守普遍接受的命名约定
  17. Go语言学习之10 Web开发与Mysql数据库
  18. (转)C# Stopwatch详解
  19. 膨胀卷积与IDCNN
  20. [转]Spring MVC之@RequestMapping 详解

热门文章

  1. Visual Studio 各个版本汇总
  2. 【转载】#324 - A Generic Class Can Have More than One Type Parameter
  3. vue中的js动画与Velocity.js结合
  4. linux .h .so .a文件
  5. Node.js 的初体验
  6. Deep Learning Libraries by Language
  7. linux awk 内置函数详细介绍(实例)
  8. js判断移动端还是PC端
  9. idea和eclipse中getAbsolutePath()方法获取值不同
  10. 洛谷P1829 [国家集训队]Crash的数字表格 / JZPTAB(莫比乌斯反演)