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

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.

主站蜘蛛池模板: 满洲里市| 岑巩县| 阿坝| 高青县| 唐山市| 深圳市| 南雄市| 宕昌县| 通榆县| 辽宁省| 泗阳县| 台州市| 无为县| 定南县| 舟山市| 定襄县| 通州市| 商洛市| 黑河市| 鹤峰县| 噶尔县| 稷山县| 定结县| 营口市| 合山市| 嘉义市| 华蓥市| 勃利县| 东平县| 延津县| 巴南区| 丹棱县| 津市市| 寻乌县| 平乡县| 手游| 麻栗坡县| 莲花县| 鄂托克旗| 祁连县| 河池市|