Android Gradle 基础认识
来源:互联网 发布:win7cf网络出现异常 编辑:程序博客网 时间:2024/06/06 07:40
项目全局的Gradle
buildscript { repositories { jcenter() } dependencies { //指定以来的Gradle版本 classpath 'com.android.tools.build:gradle:2.2.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }}allprojects { repositories { //制定Gradle的代码仓库 jcenter() }}
Model gradle
//表示这个model是一个Android Application,这包括了Android项目所用到的所有工具apply plugin: 'com.android.application'//表示该model构建过程中所用到的所有参数,android { //SDK版本 compileSdkVersion 23 //Android build tools版本 buildToolsVersion "23.0.3" defaultConfig { applicationId "com.pp.fanqie" minSdkVersion 14 targetSdkVersion 23 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }}//表示Android model构建中所用到的依赖库dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) testCompile 'junit:junit:4.12'}
local.properties
这里配置了Android Gradle插件所使用的Android SDK路径。
0 0
- Android Gradle 基础认识
- Gradle基础--认识Gradle
- android基础知识----认识Gradle
- gradle学习(3)-基础认识
- Android Studio Gradle基础
- android studio Gradle基础
- Android Gradle基础
- Android Studio Gradle基础
- Android Studio Gradle基础
- Android Studio--Gradle基础
- Android开发-Gradle基础
- Android Gradle基础实践
- Android Studio--Gradle基础
- 第一章 Android Gradle 基础
- Android之GRADLE基础
- Android Studio gradle基础
- Android Studio Gradle 基础
- android studio入门学习教程-认识gradle
- JAVA WEB从入门到精通day02 DIV+CSS的学习
- git 常用命令
- vs2010如何查看项目总代码行数
- 浅析seo优化之网站静态页面跟动态页面的特色
- Scrapy框架爬取京东商品
- Android Gradle 基础认识
- 在Windows上运行DPM VOC-release 3.1 (MATLAB 2015a,VS2013)
- Java中常遇的中文乱码问题解决方案
- JavaEE Spring框架学习笔记(理论学习之Bean的自动装配)
- 机器学习中的算法(2)-支持向量机(SVM)基础
- 第十五周项目四字符串长度
- 网易云引领程序员健康跑,Running Coder火爆IT界
- Mysql基础
- 企业站点如何针对性的让搜素引击收录站内图片