Android emulator start emulator

The phone is no longer around, ready to use the simulator to debug the code. Enter emulator -avd Nexus_6P_API_O (the name of avd can be obtained by command avdmanager list avd ) , then the following error occurs:

[140736745632704]:ERROR:./android/qt/qt_setup.cpp:28:Qt library not found at ../emulator/lib64/qt/lib
Could not launch ‘../emulator/qemu/darwin-x86_64/qemu-system-i386‘: No such file or directory

Then I went to the sdk directory to find the files with these two names, and finally found them in the sdk/emulator folder, and through the which emulator command found that the emulator was actually in sdk/tools. Because after updating the sdk, google changed the sdk file caused by the clip. The workaround is as follows:

  1. Go to the sdk/emulator folder and run the emulator command to start avd
  2. change PATH
  3. Depend on
    export PATH="$PATH:~/Library/Android/sdk/tools"
    change to
    export PATH="$PATH:~/Library/Android/sdk/emulator"

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326110606&siteId=291194637