title: keystore not found for signing config 'release'.-- React native
body: <p>I'm trying to generate a <code>Signed APK</code> for react native project.
  Followed steps from android and react-native documentation.</p>
  <p>my <code>Build.gradle</code> file</p>
  <pre><code>android {
  compileSdkVersion 23
  buildToolsVersion '26.0.2'
  
  defaultConfig {
      applicationId &quot;com.appmobile&quot;
      minSdkVersion 16
      targetSdkVersion 22
      versionCode 1
      versionName &quot;1.0&quot;
      ndk {
          abiFilters &quot;armeabi-v7a&quot;, &quot;x86&quot;
      }
  }
  signingConfigs {
      release {
          if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
              storeFile file(MYAPP_RELEASE_STORE_FILE)
              storePassword MYAPP_RELEASE_STORE_PASSWORD
              keyAlias MYAPP_RELEASE_KEY_ALIAS
              keyPassword MYAPP_RELEASE_KEY_PASSWORD
          }
      }
  }
  buildTypes {
      release {
          signingConfig signingConfigs.release
          // minifyEnabled enableProguardInReleaseBuilds
          // proguardFiles getDefaultProguardFile(&quot;proguard-android.txt&quot;), &quot;proguard-rules.pro&quot;
      }
  }
  splits {
      abi {
          reset()
          enable enableSeparateBuildPerCPUArchitecture
          universalApk false  // If true, also generate a universal APK
          include &quot;armeabi-v7a&quot;, &quot;x86&quot;
      }
  }
  // buildTypes {
  //     release {
  //         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:
          // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits
          def versionCodes = [&quot;armeabi-v7a&quot;:1, &quot;x86&quot;:2]
          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
          }
      }
  }
  </code></pre>
  <p>}</p>
  <p>I have placed keystore file in <code>Android/app</code> directory</p>
  <p>my <code>grade.properties</code></p>
  <pre><code>    android.useDeprecatedNdk=true
  MYAPP_RELEASE_STORE_FILE=sampleReleasekeyStore.jks
  MYAPP_RELEASE_KEY_ALIAS=*****
  MYAPP_RELEASE_STORE_PASSWORD=*****
  MYAPP_RELEASE_KEY_PASSWORD=*****
  </code></pre>
  <p>when executing <code>cd android &amp;&amp; ./gradlew assembleRelease</code>.</p>
  <p>Its throwing Build failed</p>
  <blockquote>
  <p>Execution failed for task ':app:validateSigningRelease'.
  Keystore file /Users/username/Projects/appMobile/android/app/sampleReleasekeyStore.jks not found for signing config 'release'.</p>
  </blockquote>
  <p>I'm using a Mac environment. Please let me know where I'm going wrong.</p>