Joke Collection Website - Mood Talk - How to debug a React Native for Android APP happily?
How to debug a React Native for Android APP happily?
Simulator: the third-party Android SDK or Genymotion's own emulator.
The real machine here focuses on how to debug with the real machine. If the simulator is only used for demonstration and has no significance for actual development, I won't go into details here. Necessary for real machine debugging:?
First, make sure that your computer and mobile device are in the same Wi-Fi environment. ?
Secondly, you need to turn on USB debugging to install your APP on your device. Make sure you have turned on the USB debugging switch of the device!
To ensure that your device is successfully connected, you can enter adb device for verification:?
Seeing the device in the right column means that your device is connected correctly. Please note that you should only connect one device.
Because if you connect multiple devices (including simulators), some of your subsequent operations may fail. Unplug unnecessary devices or turn off the emulator to ensure that only one output of the adb device is connected.
Now we can run react-native run-android to install and start our application on the device.
After this command is executed, it is actually to set up a node server locally and put your android.
Project compiles, packages and uploads it to your mobile phone. Then, when the js file is changed or in debugging mode, manually select reload.
Js will automatically update the binding file to achieve the debugging effect of displaying it immediately after changing the js file.
What the hell is this "red screen"? Don't worry, it's normal. We need to connect to the development server. The following steps will solve this problem.
- Previous article:All your words.
- Next article:I feel that there is not enough time every day.
- Related articles
- The incident of Xiaoyu falling from a building in Laiwu is thought-provoking. Do you understand the bullying of kindergarten teachers?
- The simple QQ personality mood is that the mirror will always shine and the gold will always run out.
- Topic 1 "I am your father (father and son)" in the film.
- Talk about sudden cold weather, talk about bright spots.
- Is motorcycle decal illegal?
- Have you ever been insulted in a joking manner? How to deal with it?
- Describe waking up in the middle of the night
- On the sadness of 202 1: there is nothing in the distance except the distance.
- Uighurs talk about it.
- What does 20 19 special additional tax deduction mean?