title: How to choose different minSdkVersion for different android ABI?
body: <p>I have Android app which builds <code>armeabi-v7a</code> and <code>arm64-v8a</code>. Here is the <code>build.gradle</code>:</p>
  
  <pre><code>apply plugin: 'com.android.library'
  
  allprojects {
      repositories {
          jcenter()
          google()
      }
  }
  
  android {
      compileSdkVersion 28
      defaultConfig {
          minSdkVersion 21
          targetSdkVersion 28
          versionCode 1
          versionName "1.0"
          externalNativeBuild {
              cmake {
                  // Linker flags and Visibility options keeps the size of the library small
                  cppFlags "-std=c++11"
                  arguments "-DANDROID_STL=gnustl_static",
                            "-DANDROID_CPP_FEATURES=rtti exceptions",
                            "-DANDROID_TOOLCHAIN=gcc"
              }
          }
      }
  
      buildTypes {
          release {
              ndk {
                  abiFilters 'armeabi-v7a', 'arm64-v8a'
              }
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
              externalNativeBuild {
                  cmake {
                      cppFlags "-Wl,--exclude-libs=ALL -Wl,--gc-sections -fvisibility=hidden -fvisibility-inlines-hidden -ffunction-sections"
                  }
              }
          }
          debug {
              ndk {
                  abiFilters 'armeabi-v7a', 'arm64-v8a'
              }
          }
      }
      externalNativeBuild {
          cmake {
              path 'CMakeLists.txt'
          }
      }
  }
  
  dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
  }
  </code></pre>
  
  <p>I am using the <code>minSdkVersion = 21</code> to support arm64. I would like to change the <code>minSdkVersion</code> based on the <code>abiFilters</code> i.e., use 16 for v7 and use 21 for arm64.</p>