title: ReactNative on Android Package Server not running
body: <p>Following this tutorial (<a href="https://mentormate.com/blog/react-native-components/" rel="nofollow noreferrer">https://mentormate.com/blog/react-native-components/</a>) on React-Native which unfortunately only talks about IOS, I am trying to follow it in both IOS and Android.</p>
  
  <p>I init the Employee app successfully and that creates project structure and both Android and IOS parts are created:</p>
  
  <p><a href="https://i.stack.imgur.com/D1zju.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D1zju.png" alt="enter image description here"></a></p>
  
  <p>Following the tutorial in link above, I then opened the Employee.xcodeproj successfully using XCode, running it launches emulator just fine. Opening it in XCode and started React Packager and node server:</p>
  
  <p><a href="https://i.stack.imgur.com/eG6k2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eG6k2.png" alt="enter image description here"></a></p>
  
  <p>Then I tried opening Android project by opening the android folder in this project structure in Android Studio and that opened the project and built it successfully:</p>
  
  <p><a href="https://i.stack.imgur.com/6jtCf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6jtCf.png" alt="enter image description here"></a></p>
  
  <p>I tried running it on emulator first but emulator took way to long to start so I stopped that and connected my device through USB and then run it on the device but that shows me error like this:</p>
  
  <p><a href="https://i.stack.imgur.com/CqEXO.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CqEXO.jpg" alt="enter image description here"></a></p>
  
  <p>I started learning about react-native few days ago and this is the very first example I am trying (for both IOS and Android).  So, I am very new to the subject and the error says that I need to package bundle correctly and that I need to run packager server.  As shown above, the server was run when I started IOS code from XCode but how do I package and run it from android studio?</p>