Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting Emulator for API level 27 through CLI, Missing emulator engine program for 'x86' CPU

After upgrading to API level 27, the emulator @test command is no longer working.

It throws a PANIC: Missing emulator engine program for 'x86' CPU. error

Emulator of API level 26 still works with the same command.

SDKManager is of version 26.1.1

like image 963
Poh Peng Ric Avatar asked Mar 06 '18 09:03

Poh Peng Ric


1 Answers

It's because the emulator executable is present in 2 different paths now. Earlier it was in ${ANDROID_SDK_ROOT}/tools, now the preferred executable is in ${ANDROID_SDK_ROOT}/emulator.

Solution: add ${ANDROID_SDK_ROOT}/emulator to you PATH environment variable, and make sure it is present before ${ANDROID_SDK_ROOT}/tools so that it has the priority.

like image 162
vahissan Avatar answered Oct 06 '22 01:10

vahissan