title: Android Studio APK Parse Error There was a problem parsing the package
body: <p>I'm trying to <strong>generate APK</strong> to install my app (e.g. Google Play).
  APK works FINE in Android 10.0 but I have an <strong>error</strong> when trying to install on <strong>ANDROID 6.0</strong> [Error when trying to install in Android 6.0][1]
  [1]: https://i.stack.imgur.com/C20RJ.jpg</p>
  <p>I have already tried:</p>
  <ol>
  <li>change in gradle minSdkVersion to lower</li>
  <li>both phones have developers permissions</li>
  <li>access to install apps from unknown sources.</li>
  </ol>
  <p>But that won't work.</p>
  <p>What interesting I can run project via Android Studio even in debug mode in Android 6.0. And that work perfectly.</p>
  <p>Also I use Git. So I switched to older versions (which worked!) and still have same problem. (I guess problem is out of code)</p>
  <p>That is my build.gradle:</p>
  <pre><code>apply plugin: 'com.android.application'
  
  android {
      compileSdkVersion 30
      buildToolsVersion &quot;29.0.2&quot;
  
      defaultConfig {
          applicationId &quot;com.malinowski.jump&quot;
          minSdkVersion 23
          targetSdkVersion 30
          versionCode 1
          versionName &quot;1.0&quot;
          testInstrumentationRunner &quot;androidx.test.runner.AndroidJUnitRunner&quot;
          multiDexEnabled true
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
          }
      }
      compileOptions {
          coreLibraryDesugaringEnabled true
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
  }
  
  allprojects {
      tasks.withType(JavaCompile) {
          options.compilerArgs &lt;&lt; &quot;-Xlint:unchecked&quot; &lt;&lt; &quot;-Xlint:deprecation&quot;
      }
  }
  
  dependencies {
      coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.0.9'
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'androidx.appcompat:appcompat:1.0.2'
      implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
      implementation 'androidx.preference:preference:1.1.0-alpha05'
      implementation files('libs\\java-android-websocket-client-1.2.2.jar')
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'androidx.test.ext:junit:1.1.0'
      androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  }
  </code></pre>