//声明是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'}

更多相关文章

  1. Android编译过程详解(一)
  2. 编译android源码出现的问题解析
  3. Ubuntu下编译android的linux内核
  4. Android(安卓)4.0 访问WebService 出现 android.os.NetworkOnMai
  5. 编译osg for android
  6. Android(安卓)编译系统
  7. [Android官方API阅读]___
  8. FFmpeg交叉编译
  9. Android(安卓)NDK各版本下载

随机推荐

  1. Android(安卓)Kill App
  2. Duplicate files copied in APK META-INF
  3. Android利用TTF文件设置字体
  4. android 从webview中读取缓存的图片
  5. 【转载】Using SQLite from Shell in And
  6. Android移植--启动篇
  7. Android手动切换屏幕方向
  8. Android依赖库版本不一致
  9. Android(安卓)ListView实现任意layout
  10. AndroidFragment切换