ERROR: Can‘t find ‘Linux version ‘ string in kernel image文件解决

背景

# 查看设备名称
emulator -list-avds
# 启动设备
emulator  -avd  Pixel_4_API_30

使用emulator -avd 命令启动安卓模拟器的时候报错
emulator: ERROR: Can’t find 'Linux version ’ string in kernel image file: /Users/###/Android_SDK/system-images/android-30/google_apis/x86_64//kernel-ranchu

问题根因

系统中可能有多个emulator命令

解决

# 查看当前使用的emulator命令位置
which emulator
# 结果是/Users/###/Android_SDK/tools/emulator

# 应该使用 Android_SDK/emulator/文件夹下的emulator命令
cd $ANDROID_SDK_ROOT/emulator
./emulator  -avd  Pixel_4_API_30

猜你喜欢

转载自blog.csdn.net/dslkfajoaijfdoj/article/details/139723886