码迷,mamicode.com
首页 > 移动开发 > 详细

android studio 中的build.gradle

时间:2018-08-01 20:53:26      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:native   code   std   build   make   java   mini   cmake   exce   

apply plugin: ‘com.android.application‘

android {
    compileSdkVersion 26
    defaultConfig {
        applicationId "com.example.lenovo.cmakedemo"
        minSdkVersion 21
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        externalNativeBuild {
            cmake {
                cppFlags "-std=c++14 -frtti -fexceptions"
            }
        }
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile(‘proguard-android.txt‘), ‘proguard-rules.pro‘
        }
    }
    externalNativeBuild {
        cmake {
            path "CMakeLists.txt"
        }
    }
}

dependencies {
    androidTestCompile(‘com.android.support:support-annotations:26.1.0‘) {
        force = true
    }
    implementation fileTree(dir: ‘libs‘, include: [‘*.jar‘])
    implementation ‘com.android.support:appcompat-v7:26.1.0‘
    implementation ‘com.android.support.constraint:constraint-layout:1.1.2‘
    testImplementation ‘junit:junit:4.12‘
    androidTestImplementation ‘com.android.support.test:runner:1.0.2‘
    androidTestImplementation ‘com.android.support.test.espresso:espresso-core:3.0.2‘
}

android studio 中的build.gradle

标签:native   code   std   build   make   java   mini   cmake   exce   

原文地址:https://www.cnblogs.com/mathyk/p/9403489.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!