title: How to build debug apk in react native
body: <p><a href="https://i.stack.imgur.com/jhUeE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/jhUeE.png" alt="enter image description here"></a>I want to build unsigned apk or debug apk. My application is successfully running on localhost. I have tried different methods. But it shows the error. I have got the answer from <a href="https://stackoverflow.com/questions/35283959/build-and-install-unsigned-apk-on-device-without-the-development-server/35286546">Here</a> . when applying the command</p>
  
  <pre><code> react-native bundle --dev false --platform android --entry-file index.android.js --bundle-output ./android/app/build/intermediates/assets/debug/index.android.bundle --assets-dest ./android/app/build/intermediates/res/merged/debug
  </code></pre>
  
  <p>It showing the error is </p>
  
  <pre><code>Cannot find entry file index.android.js in any of the roots: ["D:\\workspace\\reactjs\\native\\myapp5"]
  </code></pre>
  
  <p>Then i have change index.android.js to App.js</p>
  
  <p>Then it will showing the error is </p>
  
  <pre><code>ENOENT: no such file or directory, open 'D:\workspace\reactjs\native\myapp5\android\app\build\intermediates\assets\debug\index.android.bundle'
  </code></pre>
  
  <p>How to solve this problem? Please help me.</p>
  
  <p>My react native versions are react-native-cli: 2.0.1 , react-native: 0.52.0 . Screenshot of my root folder i have posted.</p>
  
  <p>when i run <code>gradlew assembleDebug</code> in android folder it showing the error.</p>
  
  <p><a href="https://i.stack.imgur.com/qDls5.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qDls5.png" alt="enter image description here"></a></p>