Android Studio Gradle NDK buildFlavor ignoring processor type -


i have problem gradle , baidu push library.

in our app use buildflavor different processor type,

  productflavors {         arm {             versioncode integer.parseint("8" + defaultconfig.versioncode)             ndk {                 abifilter "armeabi"             }         }         x86 {             versioncode integer.parseint("6" + defaultconfig.versioncode)             ndk {                 abifilter "x86"             }         }         mips {             versioncode integer.parseint("4" + defaultconfig.versioncode)             ndk {                 abifilter "mips"             }         }         armv7 {             versioncode integer.parseint("2" + defaultconfig.versioncode)             ndk {                 abifilter "armeabi"             }         }     } } 

but baidu push library provide arm , mips ndk support library, x86 did not need .so working, , when try build app x86, have error [install_failed_no_matching_abis].

any idea, how can ignore ndk library processor type?

refering baidu push library documentation: "all x86 devices support arm so" mean?

right you're setting higher version code armeabi build. if that, it's armeabi apk distributed x86 devices, because x86 devices support running armeabi/armeabi-v7a apks. should give highest version code x86 apk.

anyway, can run arm libs on x86 devices can't mix them. means if cannot x86 versions of libs, should unfortunately abandon , publish arm one.

you can tell library vendor should publish x86 version of lib since not doing prevents correctly build x86 versions of apks.


Comments