欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

显示已经过时的警告

程序员文章站 2022-03-28 17:50:37
apply plugin: 'com.android.application'android { compileSdkVersion 27/** * 显示已过时的警告 */ allprojects{ gradle.projectsEvaluated { tasks.withType(JavaCompile) { options.compilerArgs << "-Xlint:unchecked" ....
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')
}

本文地址:https://blog.csdn.net/u013441613/article/details/107353005