title: ENOTEMPTY: directory not empty, rmdir '/tmp/react-native-packager-cache-02b2ace9b81fa119b172fdfd36d3a3b4e4156b70/cache'
body: <p>while doing release build android react-native </p>
  
  <pre><code>$ ./gradlew assembleRelease
  </code></pre>
  
  <p>the follwing error thrown at the end.</p>
  
  <pre><code>Loading dependency graph, done.
  
  ENOTEMPTY: directory not empty, rmdir '/tmp/react-native-packager-cache-02b2ace9b81fa119b172fdfd36d3a3b4e4156b70/cache'
  
  :app:bundleReleaseJsAndAssets FAILED
  
  FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':app:bundleReleaseJsAndAssets'.
  &gt; Process 'command 'node'' finished with non-zero exit value 1
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  
  BUILD FAILED
  </code></pre>
  
  <p>I am using </p>
  
  <pre><code>"react": "16.0.0-beta.5",
  "react-native": "0.49.3",
  </code></pre>
  
  <p>Please guide </p>