美文网首页
Android 指定兼容架构、so和jar的目录

Android 指定兼容架构、so和jar的目录

作者: Youzhicha | 来源:发表于2019-06-17 20:50 被阅读0次
apply plugin: 'com.android.application'

android {
    compileSdkVersion 26

    defaultConfig {
        applicationId "io.agora.tutorials1v1acall"
        minSdkVersion 16
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        ndk {
            abiFilters  "armeabi-v7a"  // 指定要ndk需要兼容的架构(这样其他依赖包里mips,x86,armeabi,arm-v8之类的so会被过滤掉)
        }
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    sourceSets {
        main {
            jniLibs.srcDirs = ['../../../libs']
        }
    }
}

dependencies {
    implementation fileTree(dir: '../../../libs', include: ['*.jar']) // DO NOT CHANGE, CI may needs it when packaging
    implementation 'com.android.support:appcompat-v7:26.1.0'
}

相关文章

网友评论

      本文标题:Android 指定兼容架构、so和jar的目录

      本文链接:https://www.haomeiwen.com/subject/bwazfctx.html