android studio 中的build.gradle

【android studio 中的build.gradle】落花踏尽游何处,笑入胡姬酒肆中。这篇文章主要讲述android studio 中的build.gradle相关的知识,希望能为你提供帮助。

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‘ }


    推荐阅读