dependencies {
provided files(getLayoutLibPath())
} /** ZhangChao time:2014-12-31,get layoutlib.jar path. android.os.SystemProperties need it. */
// must called after "android" definition
def getLayoutLibPath() {
def rootDir = project.rootDir
def localProperties = new File(rootDir, "local.properties")
if (localProperties.exists()) {
Properties properties = new Properties()
localProperties.withInputStream {
instr -> properties.load(instr)
}
def sdkDir = properties.getProperty('sdk.dir')
def compileSdkVersion = android.compileSdkVersion
Console.println("app compileSdkVersion : " + compileSdkVersion)
def androidJarPath = sdkDir + "/platforms/" + compileSdkVersion + "/data/layoutlib.jar"
return androidJarPath
}
return rootDir
}

最新文章

  1. POJ2505 A multiplication game[博弈论]
  2. springmvc 接受特殊类型字段的处理方法
  3. java中对象的初始化过程
  4. 在WPF下快速生成线的方法
  5. DP+BIT(优化复杂度) UESTC 1217 The Battle of Chibi
  6. Xfce 快捷键
  7. django - settings
  8. atomic_t原子操作
  9. chk cloud
  10. 分享一个MD5加密工具类
  11. jsp的C标签一般使用方法以及js接收servlet中的对象及对象数字
  12. c语言基础学习08_内存管理
  13. ajax参数传递与后台接收
  14. iptables和netfilter
  15. python_字符串的操作
  16. 【洛谷 P1616 疯狂的采药】
  17. Spring boot自定义启动字符画(banner)
  18. [leetcode]65. Valid Number 有效数值
  19. 设计模式之状态模式(State )
  20. SpringBoot配置属性之Security

热门文章

  1. Transaction And Lock--由外键导致的死锁
  2. map的回调函数
  3. C++三种野指针及应对/内存泄露
  4. 极大似然估计MLE 极大后验概率估计MAP
  5. TCP协议中URG和PSH位
  6. 小记 Linux 之 Vim
  7. 高德地图API获取天气
  8. 公司git流程图,广告业务术语
  9. es去重查询
  10. Linux lamp环境验证码无法显示