Android 与gradle常见相关问题及解答(1)

在使用android studio 开发的过程中,经常遇到一些和

gradle  相关的问题,本文结合自身经验,做一总结

1.什么是DSL(Domain-specific language)

Domain-specific language (DSL) is a computer language specialized to a particular application domain. This is in contrast to a general-purpose language (GPL), which is broadly applicable across domains.

简单说来,DSL就是有某种特殊应用领域的计算机语言。


2.什么是GPL(general-purpose language)

In computer software, a general-purpose programming language is a programming language designed to be used for writing software in a wide variety of application domains (a general-purpose language).

In many ways a general-purpose language only has this status because it does not include language constructs designed to be used within a specific application domain (e.g., a page description language contains constructs intended to make it easier to write programs that control the layout of text and graphics on a page).

domain-specific programming language is one designed to be used within a specific application domain.


简单翻译下,就是GPL是应用领域比较广泛的编程语言。



3. Groovy,Gradle,Android Plugin For Gradle  这三者到底是什么关系

   答:Gradle是一个项目构建工具,类似于Ant,Maven,

  Groovy是Gradle使用的DSL语言的基础语言。

  Android Plugin For Gradle  是以Gradle为基础专门为android开发的一个Gradle上的插件

          


 Gradle 的DSL Reference链接如下

         https://docs.gradle.org/current/dsl/

         Android Plugin For Gradle 的 DSL Reference 链接如下

         https://google.github.io/android-gradle-dsl/current/

         


    



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值