Installation steps
- Expo download;
- Download Night God simulator, tried to genymotion, but the apk file can not be transmitted;
- Open the command line, CD to the night God Simulator directory/bin, check the night God Simulator port (First run night God), with adb connection Shangye God;
- Drag the Expo to the simulator to install;
- can be run
npm run android
.
Attention
- Appears to
Error running adb: No Android device found. Please connect a device and follow t he instructions here to enable USB debugging: https://developer.android.com/studio/run/device.html#developer-device-options. I f you are using Genymotion go to Settings -> ADB, select "Use custom Android SDK tools", and point it at your Android SDK directory.
indicate that the night God Simulator is not started or the ADB is not connected to the night gods, with the adb devices
view whether connected
Starting: Intent { act=android.intent.action.VIEW dat=10.128.122.228:3000 pkg=com.ionicframework.myapp517087 } Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=10.128.122.228:3000 flg=0x10000000 pkg=com.ionicframework.myapp517087 }
the hint indicates that the simulator is not installed and needs to be installed.
React-native Android simulator Android _windows