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:
- Go to the sdk/emulator folder and run the emulator command to start avd
- change PATH
-
Depend on export PATH="$PATH:~/Library/Android/sdk/tools" change to
export PATH="$PATH:~/Library/Android/sdk/emulator"