title: Android Studio is building old version via Generate Signed bundle / APK
body: <p>I am trying to build APK from <code>Android studio 3.6.3</code> to test on the device as well as for publishing app on google play console, but I noticed, Its building APK with the old version, tried almost everything</p>
  
  <p>By the way, the build is working fine on the built-in emulator, however, sometimes it's also building the old version but by removing the build folder it solves the problem.</p>
  
  <p><strong>build.gradle</strong></p>
  
  <pre><code>// The old version name was 1.1
  
  defaultConfig {
      applicationId "com.companyName"
      minSdkVersion rootProject.ext.minSdkVersion
      targetSdkVersion rootProject.ext.targetSdkVersion
      versionCode 3
      versionName "1.2"
      missingDimensionStrategy 'react-native-camera', 'general'
      multiDexEnabled true
  }
  </code></pre>
  
  <p><strong>Versioning</strong></p>
  
  <pre><code>► android: ./gradlew -version
  ------------------------------------------------------------
  Gradle 5.6.4
  ------------------------------------------------------------
  
  Build time:   2019-11-01 20:42:00 UTC
  Revision:     dd870424f9bd8e195d614dc14bb140f43c22da98
  
  Kotlin:       1.3.41
  Groovy:       2.5.4
  Ant:          Apache Ant(TM) version 1.9.14 compiled on March 12 2019
  JVM:          14.0.1 (Oracle Corporation 14.0.1+7)
  OS:           Mac OS X 10.14.6 x86_64
  
  </code></pre>
  
  <p><strong>Tried solutions</strong></p>
  
  <ol>
  <li>File > Invalidate cache/restart > Invalidate cache/restart</li>
  <li>Build > Clean project</li>
  <li>Run > Edit Configuration > app > general > before launch > Gradle-aware make</li>
  </ol>
  
  <p>Please help, Thanks in advance</p>