apply plugin: 'com.android.application'
android {
compileSdkVersion 27
/**
* 显示已过时的警告
*/
allprojects{
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
pilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
defaultConfig {
applicationId ".opencv"
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
externalNativeBuild {
cmake {
// cppFlags ""
// cppFlags "-std=c++11 -frtti -fexceptions"
// arguments opencvFlags, "-DANDROID_ARM_NEON=TRUE" //如有性能要求,可启用NEON
// arguments "-DANDROID_STL=c++_shared"
}
}
ndk{
abiFilters 'armeabi-v7a'
ldLibs "log"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}
compileOptions {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
implementation project(':sdk')
}
本文地址:/u013441613/article/details/107353005
希望与广大网友互动??
点此进行留言吧!