apply plugin: 'com.android.application' android { compileSdkVersion 27 /** * 显示已过时的警告 */ allprojects{ gradle.projectsEvaluated { tasks.withType(JavaCompile) { options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" } } } defaultConfig { applicationId "scj.jl.com.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') }
显示已经过时的警告
最新推荐文章于 2024-01-11 15:23:22 发布