title: .so file is 64-bit instead of 32-bit - Android Studio, Java
body: <p>I have a .so file inside of the jiniLibs folder . . . it includes the following folders:</p>
  <p><strong>&quot;armeabi&quot;,</strong></p>
  <p><strong>&quot;arm64-v8a&quot;,</strong></p>
  <p><strong>&quot;armeabi-v7a&quot;,</strong></p>
  <p><strong>&quot;x86&quot;,</strong></p>
  <p><strong>&quot;x86_64&quot;</strong></p>
  <p>. . . the Gradle code:</p>
  <pre><code>android {
  compileSdkVersion 30
  buildToolsVersion &quot;30.0.0&quot;
  
  defaultConfig {
      applicationId &quot;xxx.xxx.xxx&quot;
      minSdkVersion 18
      targetSdkVersion 30
      versionCode 1
      versionName &quot;1.0&quot;
  
      testInstrumentationRunner &quot;androidx.test.runner.AndroidJUnitRunner&quot;
      ndk {
           // i tried to write  abiFilters &quot;armeabi&quot;, &quot;arm64-v8a&quot; , &quot;armeabi-v7a&quot; ,&quot;x86&quot;, &quot;x86_64&quot; and did not work 
           abiFilters &quot;armeabi&quot;, &quot;armeabi-v7a&quot;, &quot;x86&quot;
      }
  }
  </code></pre>
  <p>I always get this error:</p>
  <pre><code>java.lang.UnsatisfiedLinkError: dlopen failed: &quot;/data/app/xxx.xxx.xxx-xxx-xxx==/lib/arm/xxx.so&quot; is 64-bit instead of 32-bit
  </code></pre>
  <p>Edit:</p>
  <p>I changed the gradle code to</p>
  <pre><code>    ndk {
           abiFilters &quot;armeabi&quot;, &quot;armeabi-v7a&quot;, &quot;x86&quot; , &quot;arm64-v8a&quot;
      }
      packagingOptions {
          exclude &quot;lib/arm64-v8a/xxxxxxx.so&quot;
      }
  </code></pre>
  <p>but i get this error now</p>
  <pre><code>.so is 64-bit instead of 32-bit
  </code></pre>