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

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.

主站蜘蛛池模板: 儋州市| 黑龙江省| 梁山县| 新平| 新乡市| 错那县| 普兰县| 合阳县| 巴马| 峨边| 江城| 彰化县| 黎城县| 东辽县| 嘉兴市| 芜湖市| 寿光市| 五华县| 巩义市| 都安| 弥勒县| 仁寿县| 荣昌县| 绥宁县| 睢宁县| 新巴尔虎左旗| 松江区| 包头市| 南投县| 安乡县| 尚志市| 万州区| 承德县| 常德市| 依安县| 水城县| 丰台区| 青阳县| 徐闻县| 中卫市| 新巴尔虎左旗|