Error trying to start the android studio emulator

0

I'm starting to study react native, but whenever I try to start the emulator the error occurs.

C:\Users\MIDIASILK\Documents\Junior\Android\curso-react-native\exercicios>emulat
or -list-avds
Nexus_5X_API_25<br>
Nexus_5X_API_27

C:\Users\MIDIASILK\Documents\Junior\Android\curso-react-native\exercicios>emulat
or -no-snapshot -avd Nexus_5X_API_25

[204]:ERROR:android/android-emu/android/qt/qt_setup.cpp:28:Qt library not found
at ..\emulator\lib64\qt\lib
Could not launch 'C:\Users\MIDIASILK\Documents\Junior\Android\curso-react-native
\exercicios\..\emulator\qemu\windows-x86_64\qemu-system-armel.exe': No such file
 or directory

First I tried on my cell phone but it only stays on a red screen when I give the command react-native run-app . Then I decided to try the emulator, but I can not start it that way.
So I tried this way:

C:\Users\MIDIASILK\Documents\Junior\Android\curso-react-native\exercicios>C:\Use
 rs\MIDIASILK\AppData\Local\Android\Sdk\tools\emulator.exe -avd
 Nexus_5X_API_25

But there's a crash called:

Android emulator closed unexpectedly.

Then I tried to run the expo with a usb cable, but whenever I run react-native run-android my cell gets a red error screen.

Would anyone know why this is happening? I managing to run the expo or the other method would be perfect.

Just remember that my machine has already installed the node, jdk, jdk environment variables and android studio are already defined, python tbm is installed and I installed the packages needed to run the react native.

    
asked by anonymous 27.11.2018 / 21:31

1 answer

0

Célio, on the physical device, to run with the expo just have the expo installed on your cell phone. And on the computer the expo cli. The best way to run the expo is to use yarn (npm substitute) to install: npm install -g yarn.

Next, yarn start (to start a project made with expo). It will open a tab in your browser with a QRCode and you will read the QRCode by the expo on your phone, there the project will run.

To run without the expo, your mobile phone must be on the same network as the computer, and all the necessary libraries installed on the pc (android sdk, java, adb etc).

To verify that your device is connected correctly:

adb devices

If an error occurs, it is always good to type

adb kill-server
adb start-server

These commands restart the ADB server, which is responsible for the communication between machine and cell.

Your emulator can be with a lot of problems, from lack of libs to virtualization problem ...

    
13.12.2018 / 11:56