Error trying to start android studio emulator

Asked

Viewed 867 times

0

I’m starting to study React Enable, but whenever I try to start the emulator an error.

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 mobile 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’t start it that way.
So I tried that 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.

Soon then I tried to run by the expo with a usb cable, but whenever I swivel react-native run-android my phone gets a red screen error.

Would anyone know why this keeps happening? If I could run the expo or the other method would be perfect.

Just remembering that my machine has already installed Node, jdk, the environment variables of jdk and android studio are already defined, python tbm is installed and I installed the necessary packages to run React.

  • What is happening is that the environment is not configured correctly. The error itself indicates this [204]:ERROR:android/android-emu/android/Qt/qt_setup.cpp:28:Qt library not found at .. Emulator lib64 Qt lib. It is very important to read the error that happens.

  • Forgetting a little the execution by command line, you can start the emulator normally by Android Studio?

  • Sorry the delay to reply. I also can not run by android studio, simply does not open.

1 answer

0

Celio, on the physical device, to run with the expo just have in your cell the expo installed. And on the computer the cli expo. The best way to run the expo is by using Yarn (npm replacement), to install : npm install -g yarn.

Then, Yarn start (to start a project done with expo). It will open a tab in your browser with a Qrcode and you will read the Qrcode by expo on your mobile, then the project will run.

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

To check that your device is properly connected:

adb devices

if error occurs it is always good to type

adb kill-server
adb start-server

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

Your emulator may be experiencing a number of problems, from libs to virtualization issues...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.