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

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.

主站蜘蛛池模板: 兴化市| 昌邑市| 泊头市| 石河子市| 固安县| 静海县| 桐乡市| 平山县| 秀山| 巴里| 库车县| 宣威市| 宽甸| 大兴区| 安仁县| 博乐市| 祁东县| 会同县| 衡东县| 井研县| 苏尼特右旗| 洞口县| 阿荣旗| 崇文区| 惠水县| 平邑县| 灵寿县| 昌宁县| 潮州市| 盐源县| 龙门县| 五常市| 乐山市| 荣昌县| 上杭县| 南江县| 丹凤县| 磐石市| 本溪市| 桃园县| 灵寿县|