官术网_书友最值得收藏!

Adding Gradle to your app

You can Gradle build script dependency to your app in the following way:

Open the file from your app module.

Here, in the dependencies, add the Gradle identifier for a library that you want to import:

Let us consider the current Gradle library, for instance:

com.android.support:appcompat-v7:23.1.1

The components of this Gradle library could be distributed in sections to ease understanding. Here are a few pointers to make note of:

  • com.android.support is the package name of the project
  • appcompat-v7 is the project name
  • 23.1.1 is the version of the project

We have now completed the setup for Gradle in Android Studio. We will be using several libraries in our App. In the next section, we will see how to add new Gradle Libraries.

主站蜘蛛池模板: 辉南县| 栾川县| 商城县| 化德县| 长兴县| 柳州市| 潜江市| 康平县| 炎陵县| 清水县| 尚志市| 柳州市| 扎赉特旗| 东阳市| 华坪县| 龙门县| 北宁市| 滦南县| 宜都市| 福鼎市| 麟游县| 嵊州市| 胶州市| 成安县| 沛县| 遂宁市| 卓尼县| 青州市| 定襄县| 堆龙德庆县| 连州市| 文水县| 宜昌市| 惠水县| 建昌县| 凤城市| 禄劝| 古田县| 汤原县| 兰州市| 南京市|