title: Cannot connect to internet in release build apk
body: <p>I've created an Android application. I tested it in debug mode and works completely fine. But when I tried to release build the apk, it's not connecting to the internet at all. I used Google sign in and firebase.</p>
  <p><strong>AndroidManifest.xml</strong></p>
  <pre><code>    &lt;uses-permission android:name=&quot;android.permission.INTERNET&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.REAL_GET_TASKS &quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.ACCESS_NETWORK_STATE&quot;/&gt;
      &lt;uses-permission android:name=&quot;android.permission.ACCESS_WIFI_STATE&quot;/&gt;
      ....
  </code></pre>
  <p><strong>build.gradle</strong></p>
  <pre><code>plugins {
      id 'com.android.application'
      id 'com.google.gms.google-services'
  }
  
  android {
      compileSdkVersion 31
      buildToolsVersion &quot;31.0.0&quot;
  
      defaultConfig {
          applicationId &quot;com.defenderstudio.geeksjob&quot;
          minSdkVersion 21
          targetSdkVersion 31
          versionCode 1
          versionName '1.0'
          multiDexEnabled true
  
  
          testInstrumentationRunner &quot;androidx.test.runner.AndroidJUnitRunner&quot;
      }
  
      buildTypes {
          release {
              shrinkResources false
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
          }
      }
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
      buildFeatures {
          viewBinding true
      }
  }
  ...
  </code></pre>