title: building release apk for android in react native fails for svg files
body: <p>I am getting the below error while trying to build a react native android release build. All my images are in svg format.</p>
  
  <pre><code>:app:generateReleaseResources UP-TO-DATE
  :app:mergeReleaseResources FAILED
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':app:mergeReleaseResources'.
  &gt; /Users/shamnad.shaji/Workspace/React-Native/project/android/app/src/main/res/drawable-mdpi/images_defaultprofile.svg: Error: The file name must end with .xml or .png
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  
  BUILD FAILED
  
  Total time: 1.514 secs
  </code></pre>
  
  <p>I google this error and people have suggested to include the <code>android.disableResourceValidation=true</code> option in my gradle.properties file.</p>
  
  <p>My <code>gradle.properties</code> looks like this.</p>
  
  <pre><code>MYAPP_RELEASE_STORE_FILE=my-release-key.keystore
  MYAPP_RELEASE_KEY_ALIAS=my-key-alias
  MYAPP_RELEASE_STORE_PASSWORD=password
  MYAPP_RELEASE_KEY_PASSWORD=password
  android.disableResourceValidation=true
  </code></pre>
  
  <p>And my steps to run release build are.</p>
  
  <pre><code>react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bu‌​ndle --assets-dest android/app/src/main/res/
  cd android/
  ./gradlew assembleRelease
  </code></pre>
  
  <p>Could someone suggest me what to do?.</p>