title: React Native Duplicate resources
body: <p>After upgrading to React Native 0.57 i am facing an issue  when genrating APK in react-native-router-flux.when executing the .\gradlew assembleRelease i get below error :-</p>
  
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':app:mergeReleaseResources'.
  &gt; [drawable-mdpi-v4/node_modules_reactnativerouterflux_images_back_chevron] 
  R:\Workings\lisecapps\androidrepo\test-react- 
  native\venutest\android\app\src\main\res\drawable- 
  mdpi\node_modules_reactnativerouterflux_images_back_chevron.png      
  [drawable-mdpi-v4/node_modules_reactnativerouterflux_images_back_chevron] 
  R:\Workings\lisecapps\androidrepo\test-react- 
  emirnative\venutest\android\app\build\generated\res\react\release\drawable- 
  mdpi-v4\node_modules_reactnativerouterflux_images_back_chevron.png: Error: 
  Duplicate resources
  [drawable-mdpi-v4/node_modules_reactnativerouterflux_images_menu_burger] 
  R:\Workings\lisecapps\androidrepo\test-react-nat 
  ive\venutest\android\app\src\main\res\drawable- 
  mdpi\node_modules_reactnativerouterflux_images_menu_burger.png        
  [drawable-mdpi-v4/node_modules_reactnativerouterflux_images_menu_burger] 
  R:\Workings\lisecapps\androidrepo\test-react- 
  native\venutest\android\app\build\generated\res\react\release\drawable-mdpi- 
  v4\node_modules_reactnativerouterflux_images_menu_burger.png: Error: 
  Duplicate resources
  </code></pre>
  
  <p>I tried the following to resolve but still same error :-</p>
  
  <ul>
  <li>Tried to create script as said in the first answer <a href="https://stackoverflow.com/questions/47084810/react-native-android-duplicate-file-error-when-generating-apk">here</a> to avoid duplicate copying of asset 
  images.</li>
  <li>Deleted the whole app/build folder</li>
  </ul>