title: How do I exclude ABI from Android App Bundle?
body: <p>I know that there was an option to exclude ABIs when generating splits in Gradle which looked like this:</p>
  
  <pre><code>android {
    splits {
  
      // Configures multiple APKs based on ABI.
      abi {
  
        // Enables building multiple APKs per ABI.
        enable true
  
        // By default all ABIs are included, so use reset() and include to specify that we only
        // want APKs for x86 and x86_64.
  
        // Resets the list of ABIs that Gradle should create APKs for to none.
        reset()
  
        // Specifies a list of ABIs that Gradle should create APKs for.
        include "x86", "x86_64"
      }
    }
  }
  </code></pre>
  
  <p>And here is the <a href="https://developer.android.com/studio/build/configure-apk-splits" rel="nofollow noreferrer">official reference to splits</a> configuration</p>
  
  <p>Now it is recommended to use App Bundles when publishing your App to Play Store and I don't see any option to exclude ABIs from this bundle either by using Gradle or Play Store publishing console.</p>
  
  <p>The only clue I found so far is that you can enable/disable a particular split variant. For example here is how to disable ABI bundle splitting completely according to <a href="https://developer.android.com/studio/projects/dynamic-delivery#disable_config_apks" rel="nofollow noreferrer">documentation</a>:</p>
  
  <pre><code>android {
      // When building Android App Bundles, the splits block is ignored.
      splits {...}
  
      // Instead, use the bundle block to control which types of configuration APKs
      // you want your app bundle to support.
      bundle {
          abi {
              // This property is set to true by default.
              enableSplit = true
          }
      }
  }
  </code></pre>
  
  <p>But there no mention on how to disable/enable a specific ABI set.</p>
  
  <p>I already have <code>abiFilters</code> specified to exclude not supported NDKs, but it looks like it has no influence on App Bundle.</p>
  
  <p><strong>Update:</strong> I assumed that <code>abiFilters</code> are specifying ABIs to exclude from the App Bundle but it was exactly opposite and their porpose is to list ABIs to be included. After this clarification, everything seems to be working correctly.</p>