diff --git a/android/build.gradle b/android/build.gradle index 951e882..2afe76d 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -188,7 +188,13 @@ if ("1".equals(shouldRebuildNativeModules)) { } GenerateNodeProjectAssetsLists.dependsOn "ApplyPatchScriptToModules" - android.defaultConfig.ndk.abiFilters.each { abi_name -> + def nativeModulesABIs = android.defaultConfig.ndk.abiFilters; + if (nativeModulesABIs == null) { + // No abiFilter is defined for the build. Build native modules for eevery architecture. + nativeModulesABIs = ["armeabi-v7a", "x86", "arm64-v8a", "x86_64"] as Set; + } + + nativeModulesABIs.each { abi_name -> String temp_arch = { switch (abi_name) { case 'armeabi-v7a':