Android(安卓)Studio builde.gradle 配置说明
16lz
2021-12-04
//声明是Android应用程序apply plugin: 'com.android.application'android { //编译SDK版本 compileSdkVersion 21 buildToolsVersion "21.1.2" defaultConfig { //应用包名 applicationId "com.app.test" minSdkVersion 14 targetSdkVersion 21 versionCode 1 versionName "1.0" } //Java版本 compileOptions{ sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } buildTypes { debug{ //debug } release { //是否进行混淆,true表示进行打包混淆 minifyEnabled true //混淆配置文件位置 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }}dependencies { // 编译libs目录下的所有jar包 compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:21.0.3'}
更多相关文章
- Android编译过程详解(一)
- 编译android源码出现的问题解析
- Ubuntu下编译android的linux内核
- Android(安卓)4.0 访问WebService 出现 android.os.NetworkOnMai
- 编译osg for android
- Android(安卓)编译系统
- [Android官方API阅读]___
- FFmpeg交叉编译
- Android(安卓)NDK各版本下载