1. 程式人生 > >android gradle多渠道打包和打包選定的so資料夾

android gradle多渠道打包和打包選定的so資料夾

productFlavors {
    LDAND001 {
        ndk {//這裡控制apk要生成的so檔案
            abiFilters "armeabi-v7a"
abiFilters "armeabi"
abiFilters "x86"
abiFilters "x86_64"
}
    }
    LDAND002 {
        ndk {
            abiFilters "armeabi-v7a"
abiFilters "armeabi"
abiFilters "x86"
abiFilters "x86_64"
}
    }
    LDAND003 {
        ndk {
            abiFilters 
"armeabi-v7a" abiFilters "armeabi" abiFilters "x86" abiFilters "x86_64" } } LDAND004 { ndk { abiFilters "armeabi-v7a" abiFilters "armeabi" abiFilters "x86" abiFilters "x86_64" } } LDAND005 { ndk { abiFilters "armeabi-v7a" abiFilters "armeabi" abiFilters
"x86" abiFilters "x86_64" } } LDAND006 { ndk { abiFilters "armeabi-v7a" abiFilters "armeabi" abiFilters "x86" abiFilters "x86_64" } } LDAND008 { ndk { abiFilters "armeabi-v7a" abiFilters "armeabi" abiFilters "x86" abiFilters "x86_64" } } LDAND009 { ndk { abiFilters
"armeabi-v7a" abiFilters "armeabi" abiFilters "x86" abiFilters "x86_64" } } LDAND0012 { ndk { abiFilters "armeabi-v7a" abiFilters "armeabi" abiFilters "x86" abiFilters "x86_64" } } LDAND0014 { ndk { abiFilters "armeabi-v7a" abiFilters "armeabi" abiFilters "x86" abiFilters "x86_64" } } LDAND0018 { ndk { abiFilters "armeabi-v7a" abiFilters "armeabi" abiFilters "x86" abiFilters "x86_64" } } LDAND0019 { ndk { abiFilters "armeabi-v7a" abiFilters "armeabi" abiFilters "x86" abiFilters "x86_64" } } LDAND0020 { ndk { abiFilters "armeabi-v7a" abiFilters "armeabi" abiFilters "x86" abiFilters "x86_64" } } BLKEE_VM { ndk { abiFilters "armeabi-v7a" abiFilters "armeabi" abiFilters "x86" abiFilters "x86_64" } } Blkee { ndk { abiFilters "armeabi-v7a" abiFilters "armeabi" abiFilters "x86" abiFilters "x86_64" } } } productFlavors.all { flavor -> flavor.manifestPlaceholders = [UMENG_CHANNEL_VALUE: name] }