diff --git a/native/android/app/bash/detect_abis.sh b/native/android/app/bash/detect_abis.sh
--- a/native/android/app/bash/detect_abis.sh
+++ b/native/android/app/bash/detect_abis.sh
@@ -8,11 +8,19 @@
 for ID in ${IDS}
 do
   ABI=$(adb -s "$ID" shell getprop ro.product.cpu.abi)
-  # check if we already have this ABI
-  if [[ " ${ABIS[*]} " =~ " ${ABI} " ]]; then
-    continue
+  
+  found=false
+  for ABI_ in "${ABIS[@]}"
+  do
+    # check if we already have this ABI
+    if [[ "${ABI} " == "${ABI_}" ]]; then
+      found=true
+      break
+    fi
+  done
+  if [[ ! $found ]]; then
+    ABIS+=("${ABI} ")
   fi
-	ABIS+="${ABI} "
 done
 
 echo "$ABIS"