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

来源:互联网 发布:功夫时时彩软件 编辑:程序博客网 时间:2024/05/20 11:26

在使用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).

A 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/

         


    



原创粉丝点击