软件准备:
下载方法1:(需要打开谷歌网络)
https://github.com/google/android-emulator-m1-preview/releases
https://developer.android.com/studio
下载方法2:(百度网盘)
链接: https://pan.baidu.com/s/1M6cO2XvWGgistPwJ9zVrog?pwd=5me8
提取码: 5me8
1.软件下载,下载android studio
2.下载emulator
拖动到applications即可!
最后打开app,打不开的的话执行,
#sudo xattr -d com.apple.quarantine /Applications/Android\ Emulator.app
3.接着打开Emulator,就可以启动第一个模拟器了!
4.安装apk非常简单
5.ADB的路径,a503是用户的home目录。根据自己的路径定!
/Users/a503/Library/Android/sdk/platform-tools
确保再该目录下,然后开始安装apk
%sudo ./adb install /Users/a503/Downloads/weixin8022android2140_arm64_1.apk
% sudo ./adb install /Users/a503/Desktop/Android_8.8.90.7975_537119415_64.apk
Performing Streamed Install
Success
/Users/a503/Library/And…
5.可以在google studio下载适配的设备镜像然后去模拟器运行
[email protected] emulator % pwd
#/Users/a503/Library/Android/sdk/emulator
# ./emulator -list-avds //查看AVD的列表
Nexus_5_API_Tiramisu
Pixel_5_API_32
#./emulator -avd Nexus_5_API_Tiramisu -netdelay none -netspeed full & 启动指定的AVD
% ./emulator -avd Nexus_5_API_Tiramisu -netdelay none -netspeed full &
[1] 99028
[email protected] emulator % INFO | Android emulator version 31.2.10.0 (build_id 8420304) (CL:N/A)
WARNING | unexpected system image feature string, emulator might not function correctly, please try updating the emulator.
[email protected] emulator % INFO | Warning: QMetaObject::connectSlotsByName: No matching signal for on_new_posture_requested(int) ((null):0, (null))
INFO | Warning: QMetaObject::connectSlotsByName: No matching signal for on_dismiss_posture_selection_dialog() ((null):0, (null))
INFO | Warning: QMetaObject::connectSlotsByName: No matching signal for on_new_resizable_requested(PresetEmulatorSizeType) ((null):0, (null))
INFO | Warning: QMetaObject::connectSlotsByName: No matching signal for on_dismiss_resizable_dialog() ((null):0, (null))
WARNING | cannot add library /Users/a503/Library/Android/sdk/emulator/qemu/darwin-aarch64/lib64/vulkan/libvulkan.dylib: failed
INFO | added library /Users/a503/Library/Android/sdk/emulator/lib64/vulkan/libvulkan.dylib
INFO | configAndStartRenderer: setting vsync to 60 hz
https://developer.android.com/studio/build/building-cmdline