title: how to obfuscate android apk
body: <p>hi i want obfuscate my apk but when i use <strong>minifyEnabled true</strong> my app crash in release mode, so i updated my as to 3.4.2 and i realized that there is a new system called R8 I have activated it, but my code is still readable</p>
  
  <p>things i did</p>
  
  <pre><code>buildTypes {
          release {
              useProguard false
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
          }
      }
  </code></pre>
  
  <pre><code>dependencies {
          classpath 'com.android.tools.build:gradle:3.4.2'
      }
  </code></pre>
  
  <p>and in gradle.properties</p>
  
  <pre><code>android.enableJetifier=true
  android.useAndroidX=true
  org.gradle.jvmargs=-Xmx1536m
  android.enableR8 = true
  </code></pre>
  
  <p>After the release apk, the code is visible by the jadx program
  I am confused now, can someone tell me how to obfuscate apk?
  <a href="https://i.stack.imgur.com/ldzwv.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ldzwv.png" alt="enter image description here"></a></p>