zoukankan      html  css  js  c++  java
  • Android Application的Gradle说明

     1 //引入插件
     2 apply plugin: 'com.android.application'
     3 
     4 android {
     5     compileSdkVersion 29
     6     buildToolsVersion "29.0.0"
     7     defaultConfig {
     8         applicationId "com.example.myapplication"
     9         minSdkVersion 28
    10         targetSdkVersion 29
    11         versionCode 1
    12         versionName "1.0"
    13         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    14     }
    15     buildTypes {
    16         release {
    17             minifyEnabled false
    18             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    19         }
    20     }
    21 }
    22 
    23 dependencies {
    24     //implementation定义项目主源代码的依赖
    25 
    26     //配置依赖libs目录下的所有jar包
    27     implementation fileTree(dir: 'libs', include: ['*.jar'])
    28     //配置从中央仓库下载依赖jar包
    29     implementation 'androidx.appcompat:appcompat:1.0.2'
    30     implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    31     //testImplementation定义项目测试代码(test目录下的代码)的依赖
    32     testImplementation 'junit:junit:4.12'
    33     //androidTestImplementation定义androidTest目录下的代码依赖
    34     androidTestImplementation 'androidx.test:runner:1.2.0'
    35     androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
    36 }
  • 相关阅读:
    MVC中单选按钮的实现
    前端点击手机号码跳转到手机拨号页面
    jQuery限制文本框只能输入正整数
    Asp.Net 之 二维码生成
    MVC +Jqyery+Ajax 实现弹出层提醒
    jQuery Ajax使用实例
    ASP的调试技术解答
    模式应用场景
    redis笔记
    yii resful
  • 原文地址:https://www.cnblogs.com/fanqisoft/p/11004003.html
Copyright © 2011-2022 走看看