title: React Native Release( IPA and APK ) crash on start
body: <p>Iam getting the below error when I open the release build .It happens both in IOS and Android.</p>
  <p>E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
  Process: com.package.name, PID: 28695
  com.facebook.react.common.JavascriptException: ReferenceError: Can't find variable: typeAnnotation, stack:
  @980:17088
  v@2:1473
  @979:425
  v@2:1473
  @978:339
  v@2:1473
  @971:6338
  v@2:1473
  @970:139
  v@2:1473
  @969:218
  v@2:1473
  @968:117
  v@2:1473
  @882:1330
  v@2:1473
  @545:542
  v@2:1473
  @406:344
  v@2:1473
  @6:57
  v@2:1473
  d@2:875
  global code@1766:3
  at com.facebook.react.modules.core.ExceptionsManagerModule.reportException(ExceptionsManagerModule.java:83)
  at java.lang.reflect.Method.invoke(Native Method)
  at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:372)
  at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:151)
  at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
  at android.os.Handler.handleCallback(Handler.java:789)
  at android.os.Handler.dispatchMessage(Handler.java:98)
  at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
  at android.os.Looper.loop(Looper.java:164)
  at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
  at java.lang.Thread.run(Thread.java:764)</p>
  <p>Project Information</p>
  <pre><code>System:
  OS: macOS 11.0.1
  CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  Memory: 111.48 MB / 16.00 GB
  Shell: 5.8 - /bin/zsh
   Binaries:
  Node: 10.16.3 - /usr/local/bin/node
  Yarn: 1.22.5 - /usr/local/bin/yarn
  npm: 6.14.10 - /usr/local/bin/npm
  Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
  CocoaPods: 1.9.3 - /usr/local/bin/pod
  SDKs:
   iOS SDK:
    Platforms: iOS 14.2, DriverKit 20.0, macOS 11.0, tvOS 14.2, watchOS 7.1
   Android SDK:
     API Levels: 23, 24, 25, 26, 27, 28, 29
    Build Tools: 19.1.0, 20.0.0, 21.1.2, 22.0.1, 23.0.1, 23.0.2, 23.0.3, 24.0.0, 24.0.1, 24.0.2, 24.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.0, 26.0.1, 26.0.2, 26.0.3, 27.0.0, 27.0.1, 27.0.2, 27.0.3, 28.0.0, 28.0.1, 28.0.2, 28.0.3, 29.0.0, 29.0.1, 29.0.2, 29.0.3, 30.0.0, 30.0.3
    System Images: android-26 | Intel x86 Atom, android-26 | Google APIs Intel x86 Atom, android-26 | Google Play Intel x86 Atom, android-27 | Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-28 | Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-29 | Intel x86 Atom, android-29 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom
    Android NDK: Not Found
  IDEs:
  Android Studio: 4.1 AI-201.8743.12.41.6953283
  Xcode: 12.2/12B45b - /usr/bin/xcodebuild
  Languages:
  Java: 1.8.0_221 - /usr/bin/javac
  Python: 2.7.16 - /usr/bin/python
  npmPackages:
  @react-native-community/cli: Not Found
  react: 16.13.1 =&gt; 16.13.1 
  react-native: ^0.63.3 =&gt; 0.63.4 
  react-native-macos: Not Found
  npmGlobalPackages:
  *react-native*: Not Found
  </code></pre>
  <p>Package.json</p>
  <pre><code>  {
    &quot;name&quot;: &quot;AwrStarterKit&quot;,
    &quot;version&quot;: &quot;0.0.1&quot;,
    &quot;private&quot;: true,
    &quot;scripts&quot;: {
      &quot;android&quot;: &quot;react-native run-android&quot;,
      &quot;ios&quot;: &quot;react-native run-ios&quot;,
      &quot;start&quot;: &quot;react-native start&quot;,
      &quot;test&quot;: &quot;jest&quot;,
      &quot;lint&quot;: &quot;eslint .&quot;,
      &quot;ios-build:dev&quot;: &quot;gulp set --env=dev &amp;&amp; react-native run-ios&quot;,
      &quot;ios-build:test&quot;: &quot;gulp set --env=test &amp;&amp; react-native run-ios&quot;,
      &quot;ios-build:prod&quot;: &quot;gulp set --env=prod &amp;&amp; react-native run-ios&quot;,
      &quot;android-build:dev&quot;: &quot;gulp set --env=dev &amp;&amp; react-native run-android&quot;,
      &quot;android-build:test&quot;: &quot;gulp set --env=test &amp;&amp; react-native run-android&quot;,
      &quot;android-build:prod&quot;: &quot;gulp set --env=test &amp;&amp; react-native run-android&quot;,
      &quot;android-releaseBuild:test&quot;: &quot;gulp set --env=test &amp;&amp; cd android &amp;&amp; ./gradlew assembleRelease&quot;,
      &quot;android-releaseBuild:prod&quot;: &quot;gulp set --env=test &amp;&amp; cd android &amp;&amp; ./gradlew clean &amp;&amp; ./gradlew assembleRelease&quot;,
      &quot;android-clean&quot;: &quot;cd android &amp;&amp; ./gradlew clean&quot;,
      &quot;generate&quot;: &quot;plop&quot;
    },
    &quot;dependencies&quot;: {
      &quot;@notifee/react-native&quot;: &quot;^0.13.2&quot;,
      &quot;@react-native-community/async-storage&quot;: &quot;^1.12.0&quot;,
      &quot;@react-native-community/geolocation&quot;: &quot;^2.0.2&quot;,
      &quot;@react-native-community/masked-view&quot;: &quot;^0.1.10&quot;,
      &quot;@react-native-community/netinfo&quot;: &quot;^5.9.7&quot;,
      &quot;@react-native-community/toolbar-android&quot;: &quot;^0.1.0-rc.2&quot;,
      &quot;@react-native-firebase/analytics&quot;: &quot;^7.6.7&quot;,
      &quot;@react-native-firebase/app&quot;: &quot;^8.4.3&quot;,
      &quot;@react-native-firebase/crashlytics&quot;: &quot;^8.4.9&quot;,
      &quot;@react-native-firebase/messaging&quot;: &quot;^7.8.11&quot;,
      &quot;@react-navigation/bottom-tabs&quot;: &quot;^5.9.0&quot;,
      &quot;@react-navigation/compat&quot;: &quot;^5.2.8&quot;,
      &quot;@react-navigation/native&quot;: &quot;^5.7.4&quot;,
      &quot;@react-navigation/stack&quot;: &quot;^5.9.1&quot;,
      &quot;axios&quot;: &quot;^0.20.0&quot;,
      &quot;firebase&quot;: &quot;^7.22.0&quot;,
      &quot;fs&quot;: &quot;^0.0.1-security&quot;,
      &quot;gulp&quot;: &quot;^4.0.2&quot;,
      &quot;gulp-clean&quot;: &quot;^0.4.0&quot;,
      &quot;gulp-rename&quot;: &quot;^2.0.0&quot;,
      &quot;i18n-js&quot;: &quot;^3.7.1&quot;,
      &quot;js-base64&quot;: &quot;^3.5.2&quot;,
      &quot;js-pascalcase&quot;: &quot;^1.2.1&quot;,
      &quot;lodash.memoize&quot;: &quot;^4.1.2&quot;,
      &quot;moment&quot;: &quot;^2.29.1&quot;,
      &quot;plop&quot;: &quot;^2.7.4&quot;,
      &quot;react&quot;: &quot;16.13.1&quot;,
      &quot;react-native&quot;: &quot;^0.63.3&quot;,
      &quot;react-native-af-video-player&quot;: &quot;^0.2.1&quot;,
      &quot;react-native-android-location-enabler&quot;: &quot;^1.2.1&quot;,
      &quot;react-native-aws3&quot;: &quot;^0.0.9&quot;,
      &quot;react-native-calendar-events&quot;: &quot;^2.1.0&quot;,
      &quot;react-native-camera&quot;: &quot;^3.40.0&quot;,
      &quot;react-native-config&quot;: &quot;^1.3.3&quot;,
      &quot;react-native-dash&quot;: &quot;^0.0.11&quot;,
      &quot;react-native-datepicker&quot;: &quot;^1.7.2&quot;,
      &quot;react-native-device-info&quot;: &quot;^6.1.0&quot;,
      &quot;react-native-event-listeners&quot;: &quot;^1.0.7&quot;,
      &quot;react-native-exception-handler&quot;: &quot;^2.10.8&quot;,
      &quot;react-native-fast-image&quot;: &quot;^8.3.3&quot;,
      &quot;react-native-fs&quot;: &quot;^2.16.6&quot;,
      &quot;react-native-gesture-handler&quot;: &quot;^1.9.0&quot;,
      &quot;react-native-google-places-autocomplete&quot;: &quot;^1.9.0&quot;,
      &quot;react-native-highlight-words&quot;: &quot;^1.0.1&quot;,
      &quot;react-native-hyperlink&quot;: &quot;^0.0.19&quot;,
      &quot;react-native-i18n&quot;: &quot;^2.0.15&quot;,
      &quot;react-native-image-crop-picker&quot;: &quot;^0.35.0&quot;,
      &quot;react-native-image-gallery&quot;: &quot;^2.1.5&quot;,
      &quot;react-native-image-pan-zoom&quot;: &quot;^2.1.12&quot;,
      &quot;react-native-image-picker&quot;: &quot;^2.3.4&quot;,
      &quot;react-native-keep-awake&quot;: &quot;^4.0.0&quot;,
      &quot;react-native-linear-gradient&quot;: &quot;^2.5.6&quot;,
      &quot;react-native-localize&quot;: &quot;^1.4.1&quot;,
      &quot;react-native-map-link&quot;: &quot;^2.7.19&quot;,
      &quot;react-native-maps&quot;: &quot;^0.27.1&quot;,
      &quot;react-native-modal&quot;: &quot;^11.5.6&quot;,
      &quot;react-native-mov-to-mp4&quot;: &quot;^0.2.2&quot;,
      &quot;react-native-orientation&quot;: &quot;^3.1.3&quot;,
      &quot;react-native-pdf&quot;: &quot;^6.2.1&quot;,
      &quot;react-native-permissions&quot;: &quot;^2.2.2&quot;,
      &quot;react-native-photo-view-ex&quot;: &quot;^1.1.0&quot;,
      &quot;react-native-progress&quot;: &quot;^4.1.2&quot;,
      &quot;react-native-reanimated&quot;: &quot;^1.13.2&quot;,
      &quot;react-native-render-html&quot;: &quot;^4.2.4&quot;,
      &quot;react-native-restart&quot;: &quot;^0.0.17&quot;,
      &quot;react-native-safe-area-context&quot;: &quot;^3.1.9&quot;,
      &quot;react-native-screens&quot;: &quot;^2.16.1&quot;,
      &quot;react-native-splash-screen&quot;: &quot;^3.2.0&quot;,
      &quot;react-native-swiper&quot;: &quot;^1.6.0&quot;,
      &quot;react-native-thumbnail&quot;: &quot;^1.1.3&quot;,
      &quot;react-native-touch-id&quot;: &quot;^4.4.1&quot;,
      &quot;react-native-vector-icons&quot;: &quot;^7.1.0&quot;,
      &quot;react-native-version-number&quot;: &quot;^0.3.6&quot;,
      &quot;react-native-video&quot;: &quot;^5.1.0-alpha8&quot;,
      &quot;react-native-view-overflow&quot;: &quot;^0.0.5&quot;,
      &quot;react-native-webview&quot;: &quot;^10.9.0&quot;,
      &quot;react-navigation&quot;: &quot;^4.4.1&quot;,
      &quot;react-navigation-transitions&quot;: &quot;^1.0.12&quot;,
      &quot;react-redux&quot;: &quot;^7.2.1&quot;,
      &quot;redux&quot;: &quot;^4.0.5&quot;,
      &quot;redux-logger&quot;: &quot;^3.0.6&quot;,
      &quot;redux-persist&quot;: &quot;^6.0.0&quot;,
      &quot;redux-promise-middleware&quot;: &quot;^6.1.2&quot;,
      &quot;redux-thunk&quot;: &quot;^2.3.0&quot;,
      &quot;rn-fetch-blob&quot;: &quot;^0.12.0&quot;,
      &quot;stacktrace-js&quot;: &quot;^2.0.2&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@babel/core&quot;: &quot;^7.8.4&quot;,
      &quot;@babel/runtime&quot;: &quot;^7.8.4&quot;,
      &quot;@react-native-community/eslint-config&quot;: &quot;^1.1.0&quot;,
      &quot;babel-jest&quot;: &quot;^25.1.0&quot;,
      &quot;eslint&quot;: &quot;^6.5.1&quot;,
      &quot;jest&quot;: &quot;^25.1.0&quot;,
      &quot;metro-react-native-babel-preset&quot;: &quot;^0.59.0&quot;,
      &quot;react-test-renderer&quot;: &quot;16.13.1&quot;
    },
    &quot;jest&quot;: {
      &quot;preset&quot;: &quot;react-native&quot;
    },
    &quot;react-native&quot;: {
      &quot;zlib&quot;: &quot;browserify-zlib&quot;,
      &quot;console&quot;: &quot;console-browserify&quot;,
      &quot;constants&quot;: &quot;constants-browserify&quot;,
      &quot;crypto&quot;: &quot;react-native-crypto&quot;,
      &quot;dns&quot;: &quot;dns.js&quot;,
      &quot;net&quot;: &quot;react-native-tcp&quot;,
      &quot;domain&quot;: &quot;domain-browser&quot;,
      &quot;http&quot;: &quot;@tradle/react-native-http&quot;,
      &quot;https&quot;: &quot;https-browserify&quot;,
      &quot;os&quot;: &quot;react-native-os&quot;,
      &quot;path&quot;: &quot;path-browserify&quot;,
      &quot;querystring&quot;: &quot;querystring-es3&quot;,
      &quot;fs&quot;: &quot;react-native-level-fs&quot;,
      &quot;_stream_transform&quot;: &quot;readable-stream/transform&quot;,
      &quot;_stream_readable&quot;: &quot;readable-stream/readable&quot;,
      &quot;_stream_writable&quot;: &quot;readable-stream/writable&quot;,
      &quot;_stream_duplex&quot;: &quot;readable-stream/duplex&quot;,
      &quot;_stream_passthrough&quot;: &quot;readable-stream/passthrough&quot;,
      &quot;dgram&quot;: &quot;react-native-udp&quot;,
      &quot;stream&quot;: &quot;stream-browserify&quot;,
      &quot;timers&quot;: &quot;timers-browserify&quot;,
      &quot;tty&quot;: &quot;tty-browserify&quot;,
      &quot;vm&quot;: &quot;vm-browserify&quot;,
      &quot;tls&quot;: false
    },
    &quot;browser&quot;: {
      &quot;zlib&quot;: &quot;browserify-zlib&quot;,
      &quot;console&quot;: &quot;console-browserify&quot;,
      &quot;constants&quot;: &quot;constants-browserify&quot;,
      &quot;crypto&quot;: &quot;react-native-crypto&quot;,
      &quot;dns&quot;: &quot;dns.js&quot;,
      &quot;net&quot;: &quot;react-native-tcp&quot;,
      &quot;domain&quot;: &quot;domain-browser&quot;,
      &quot;http&quot;: &quot;@tradle/react-native-http&quot;,
      &quot;https&quot;: &quot;https-browserify&quot;,
      &quot;os&quot;: &quot;react-native-os&quot;,
      &quot;path&quot;: &quot;path-browserify&quot;,
      &quot;querystring&quot;: &quot;querystring-es3&quot;,
      &quot;fs&quot;: &quot;react-native-level-fs&quot;,
      &quot;_stream_transform&quot;: &quot;readable-stream/transform&quot;,
      &quot;_stream_readable&quot;: &quot;readable-stream/readable&quot;,
      &quot;_stream_writable&quot;: &quot;readable-stream/writable&quot;,
      &quot;_stream_duplex&quot;: &quot;readable-stream/duplex&quot;,
      &quot;_stream_passthrough&quot;: &quot;readable-stream/passthrough&quot;,
      &quot;dgram&quot;: &quot;react-native-udp&quot;,
      &quot;stream&quot;: &quot;stream-browserify&quot;,
      &quot;timers&quot;: &quot;timers-browserify&quot;,
      &quot;tty&quot;: &quot;tty-browserify&quot;,
      &quot;vm&quot;: &quot;vm-browserify&quot;,
      &quot;tls&quot;: false
    }
  }
  </code></pre>
  <p>Build Gradle</p>
  <p>app/build.gradle</p>
  <pre><code>apply plugin: &quot;com.android.application&quot;
  
  import com.android.build.OutputFile
  
  /**
   * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
   * and bundleReleaseJsAndAssets).
   * These basically call `react-native bundle` with the correct arguments during the Android build
   * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
   * bundle directly from the development server. Below you can see all the possible configurations
   * and their defaults. If you decide to add a configuration block, make sure to add it before the
   * `apply from: &quot;../../node_modules/react-native/react.gradle&quot;` line.
   *
   * project.ext.react = [
   *   // the name of the generated asset file containing your JS bundle
   *   bundleAssetName: &quot;index.android.bundle&quot;,
   *
   *   // the entry file for bundle generation. If none specified and
   *   // &quot;index.android.js&quot; exists, it will be used. Otherwise &quot;index.js&quot; is
   *   // default. Can be overridden with ENTRY_FILE environment variable.
   *   entryFile: &quot;index.android.js&quot;,
   *
   *   // https://reactnative.dev/docs/performance#enable-the-ram-format
   *   bundleCommand: &quot;ram-bundle&quot;,
   *
   *   // whether to bundle JS and assets in debug mode
   *   bundleInDebug: false,
   *
   *   // whether to bundle JS and assets in release mode
   *   bundleInRelease: true,
   *
   *   // whether to bundle JS and assets in another build variant (if configured).
   *   // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
   *   // The configuration property can be in the following formats
   *   //         'bundleIn${productFlavor}${buildType}'
   *   //         'bundleIn${buildType}'
   *   // bundleInFreeDebug: true,
   *   // bundleInPaidRelease: true,
   *   // bundleInBeta: true,
   *
   *   // whether to disable dev mode in custom build variants (by default only disabled in release)
   *   // for example: to disable dev mode in the staging build type (if configured)
   *   devDisabledInStaging: true,
   *   // The configuration property can be in the following formats
   *   //         'devDisabledIn${productFlavor}${buildType}'
   *   //         'devDisabledIn${buildType}'
   *
   *   // the root of your project, i.e. where &quot;package.json&quot; lives
   *   root: &quot;../../&quot;,
   *
   *   // where to put the JS bundle asset in debug mode
   *   jsBundleDirDebug: &quot;$buildDir/intermediates/assets/debug&quot;,
   *
   *   // where to put the JS bundle asset in release mode
   *   jsBundleDirRelease: &quot;$buildDir/intermediates/assets/release&quot;,
   *
   *   // where to put drawable resources / React Native assets, e.g. the ones you use via
   *   // require('./image.png')), in debug mode
   *   resourcesDirDebug: &quot;$buildDir/intermediates/res/merged/debug&quot;,
   *
   *   // where to put drawable resources / React Native assets, e.g. the ones you use via
   *   // require('./image.png')), in release mode
   *   resourcesDirRelease: &quot;$buildDir/intermediates/res/merged/release&quot;,
   *
   *   // by default the gradle tasks are skipped if none of the JS files or assets change; this means
   *   // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
   *   // date; if you have any other folders that you want to ignore for performance reasons (gradle
   *   // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
   *   // for example, you might want to remove it from here.
   *   inputExcludes: [&quot;android/**&quot;, &quot;ios/**&quot;],
   *
   *   // override which node gets called and with what additional arguments
   *   nodeExecutableAndArgs: [&quot;node&quot;],
   *
   *   // supply additional arguments to the packager
   *   extraPackagerArgs: []
   * ]
   */
  
  project.ext.react = [
      enableHermes: false,  // clean and rebuild if changing
  ]
  
  apply from: &quot;../../node_modules/react-native/react.gradle&quot;
  apply from: project(':react-native-config').projectDir.getPath() + &quot;/dotenv.gradle&quot;
  /**
   * Set this to true to create two separate APKs instead of one:
   *   - An APK that only works on ARM devices
   *   - An APK that only works on x86 devices
   * The advantage is the size of the APK is reduced by about 4MB.
   * Upload all the APKs to the Play Store and people will download
   * the correct one based on the CPU architecture of their device.
   */
  def enableSeparateBuildPerCPUArchitecture = false
  
  /**
   * Run Proguard to shrink the Java bytecode in release builds.
   */
  def enableProguardInReleaseBuilds = false
  
  /**
   * The preferred build flavor of JavaScriptCore.
   *
   * For example, to use the international variant, you can use:
   * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
   *
   * The international variant includes ICU i18n library and necessary data
   * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
   * give correct results when using with locales other than en-US.  Note that
   * this variant is about 6MiB larger per architecture than default.
   */
  def jscFlavor = 'org.webkit:android-jsc:+'
  
  /**
   * Whether to enable the Hermes VM.
   *
   * This should be set on project.ext.react and mirrored here.  If it is not set
   * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
   * and the benefits of using Hermes will therefore be sharply reduced.
   */
  def enableHermes = project.ext.react.get(&quot;enableHermes&quot;, false);
  
  android {
      compileSdkVersion rootProject.ext.compileSdkVersion
  
      compileOptions {
          sourceCompatibility JavaVersion.VERSION_1_8
          targetCompatibility JavaVersion.VERSION_1_8
      }
      lintOptions { 
          checkReleaseBuilds false
          }
      packagingOptions {
              pickFirst 'lib/x86/libc++_shared.so'
              pickFirst 'lib/x86_64/libc++_shared.so'
              pickFirst 'lib/armeabi-v7a/libc++_shared.so'
              pickFirst 'lib/arm64-v8a/libc++_shared.so'
          }
      defaultConfig {
          applicationId &quot;com.packageName&quot;
          minSdkVersion rootProject.ext.minSdkVersion
          targetSdkVersion rootProject.ext.targetSdkVersion
          versionCode project.env.get(&quot;ANDROID_VERSION_CODE&quot;).toInteger() 
          versionName project.env.get(&quot;ANDROID_VERSION_NAME&quot;)
          missingDimensionStrategy 'react-native-camera', 'general'
          multiDexEnabled true
      }
      splits {
          abi {
              reset()
              enable enableSeparateBuildPerCPUArchitecture
              universalApk false  // If true, also generate a universal APK
              include &quot;armeabi-v7a&quot;, &quot;x86&quot;, &quot;arm64-v8a&quot;, &quot;x86_64&quot;
          }
      }
      signingConfigs {
          debug {
             
          }
          release {
             
        }
      }
      buildTypes {
          debug {
              signingConfig signingConfigs.debug
          }
          release {
              // Caution! In production, you need to generate your own keystore file.
              // see https://reactnative.dev/docs/signed-apk-android.
              signingConfig signingConfigs.debug
              minifyEnabled enableProguardInReleaseBuilds
              proguardFiles getDefaultProguardFile(&quot;proguard-android.txt&quot;), &quot;proguard-rules.pro&quot;
              
          }
      }
  
      // applicationVariants are e.g. debug, release
      applicationVariants.all { variant -&gt;
          variant.outputs.each { output -&gt;
              // For each separate APK per architecture, set a unique version code as described here:
              // https://developer.android.com/studio/build/configure-apk-splits.html
              def versionCodes = [&quot;armeabi-v7a&quot;: 1, &quot;x86&quot;: 2, &quot;arm64-v8a&quot;: 3, &quot;x86_64&quot;: 4]
              def abi = output.getFilter(OutputFile.ABI)
              if (abi != null) {  // null for the universal-debug, universal-release variants
                  output.versionCodeOverride =
                          versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
              }
  
          }
      }
  }
  
  
  dependencies {
      implementation fileTree(dir: &quot;libs&quot;, include: [&quot;*.jar&quot;])
      //noinspection GradleDynamicVersion
      implementation &quot;com.facebook.react:react-native:+&quot;  // From node_modules
      implementation 'androidx.multidex:multidex:2.0.1'
  
      implementation &quot;androidx.swiperefreshlayout:swiperefreshlayout:1.0.0&quot;
      // implementation 'com.android.support:support-annotations:28.0.0'
   implementation 'com.android.support:appcompat-v7:28.0.0'
      implementation 'com.android.support:support-v4:28.0.0'    // implementation 'androidx.appcompat:appcompat:1.0.2'
      // implementation 'androidx.annotation:annotation:1.0.2'
        implementation 'me.leolin:ShortcutBadger:1.1.21@aar'
        implementation 'com.google.firebase:firebase-analytics:17.5.0'
        implementation 'com.google.firebase:firebase-crashlytics:17.2.2'
        implementation &quot;com.google.android.gms:play-services-base:16.1.0&quot;
        implementation 'com.google.firebase:firebase-core:16.0.9'
        implementation 'com.google.firebase:firebase-messaging:20.3.0'
        implementation &quot;com.google.android.gms:play-services-gcm:12.+&quot;
  
      debugImplementation(&quot;com.facebook.flipper:flipper:${FLIPPER_VERSION}&quot;) {
        exclude group:'com.facebook.fbjni'
      }
  
      debugImplementation(&quot;com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}&quot;) {
          exclude group:'com.facebook.flipper'
          exclude group:'com.squareup.okhttp3', module:'okhttp'
      }
  
      debugImplementation(&quot;com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}&quot;) {
          exclude group:'com.facebook.flipper'
      }
  
      if (enableHermes) {
          def hermesPath = &quot;../../node_modules/hermes-engine/android/&quot;;
          debugImplementation files(hermesPath + &quot;hermes-debug.aar&quot;)
          releaseImplementation files(hermesPath + &quot;hermes-release.aar&quot;)
      } else {
          implementation jscFlavor
      }
  }
  
  // Run this once to be able to run the application with BUCK
  // puts all compile dependencies into folder libs for BUCK to use
  task copyDownloadableDepsToLibs(type: Copy) {
      from configurations.compile
      into 'libs'
  }
  
  apply from: file(&quot;../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle&quot;); applyNativeModulesAppBuildGradle(project)
  apply plugin: 'com.google.gms.google-services'
  apply plugin: 'com.google.firebase.crashlytics'
  
   // Google Play services Gradle plugin
  com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
   
  </code></pre>