Missing emulator engine program for x86 cpu. windows

Android Studio Windows `PANIC: Missing emulator engine program for x86 CPU.`

Questions : Android Studio Windows `PANIC: Missing emulator engine program for x86 CPU.`

2022-09-19T03:45:53+00:00 2022-09-19T03:45:53+00:00

915

Context:

I have an Android virtual device that was anycodings_android-sdk-tools created with Android Studio, that I must anycodings_android-sdk-tools launch from command line for customization anycodings_android-sdk-tools need.

Description:

Launching this command:

C:\Users\jonathan\AppData\Local\Android\Sdk\tools>emulator.exe -avd Pixel_3_API_30 -writable-system

(the -writable-system is because I need anycodings_android-sdk-tools override the /etc/host/ file)

I get this error:

PANIC: Missing emulator engine program for 'x86' CPU.

Environment:

  • Windows 10
  • Java 8
  • Android Studio: 4.0
  • Android SDK Manager: 26.1.1

More detail:

Running in verbose:

C:\Users\jonathan\AppData\Local\Android\Sdk\tools>emulator.exe -avd Pixel_3_API_30 -writable-system -verbose
emulator:Android emulator version 26.0.3.0 (build_id 3965150)
emulator:Found AVD name 'Pixel_3_API_30'
emulator:Found AVD target architecture: x86
emulator:argv[0]: 'emulator.exe'; program directory: 'C:\Users\jonathan\AppData\Local\Android\Sdk\tools'
emulator:  Found directory: C:\Users\jonathan\AppData\Local\Android\Sdk\system-images\android-30\google_apis_playstore\x86\

emulator:Probing for C:\Users\jonathan\AppData\Local\Android\Sdk\system-images\android-30\google_apis_playstore\x86\/kernel-ranchu: file missing
emulator:Auto-config: -engine classic (based on configuration)
emulator:  Found directory: C:\Users\jonathan\AppData\Local\Android\Sdk\system-images\android-30\google_apis_playstore\x86\

emulator:try dir C:\Users\jonathan\AppData\Local\Android\Sdk\tools
emulator:Looking for emulator-x86 to emulate 'x86' CPU
emulator:Probing program: C:\Users\jonathan\AppData\Local\Android\Sdk\tools/emulator-x86.exe
PANIC: Missing emulator engine program for 'x86' CPU.

Total Answers 2

29

Answers 1 : of Android Studio Windows `PANIC: Missing emulator engine program for x86 CPU.`

Open a prompt in admin mode.

cd C:\Users\jlalou\AppData\Local\Android\Sdk\emulator>
mklink emulator-x86.exe emulator.exe

Then run emulator-x86 instead of anycodings_android-sdk-tools emulator, ie return to former console anycodings_android-sdk-tools and execute

cd C:\Users\jonathan\AppData\Local\Android\Sdk\tools
emulator-x86.exe -avd Pixel_3_API_30 -writable-system

Warning: the Android image was restored anycodings_android-sdk-tools to default: all data and applications anycodings_android-sdk-tools were wiped out.

0

2022-09-19T03:45:53+00:00 2022-09-19T03:45:53+00:00Answer Link

mRahman

6

Answers 2 : of Android Studio Windows `PANIC: Missing emulator engine program for x86 CPU.`

PANIC: Missing emulator engine program anycodings_android-sdk-tools for 'x86' CPU.

I had the same issue on Windows and the anycodings_android-sdk-tools mklink was not helpful. What worked is anycodings_android-sdk-tools the fact that you possibly calling the anycodings_android-sdk-tools emulator from the old depricated path:

C:\Users\jonathan\AppData\Local\Android\Sdk\tools

Instead, call from:

C:\Users\jlalou\AppData\Local\Android\Sdk\emulator>

Call there ti run the Emulator outside anycodings_android-sdk-tools of Android Studio:

C:\Users\App\AppData\Local\Android\Sdk\emulator>emulator -avd Pixel_XL_API_30

0

2022-09-19T03:45:53+00:00 2022-09-19T03:45:53+00:00Answer Link

raja

Issue

On macOS Catalina 10.15.5, Android Studio 4.1.2, I try to start the emulator from the command line.

% ~/Library/Android/sdk/tools/emulator -list-avds
Pixel_XL_API_30
% ~/Library/Android/sdk/tools/emulator -avd Pixel_XL_API_30
PANIC: Missing emulator engine program for 'x86' CPU.

But I get an error saying PANIC: Missing emulator engine program for 'x86' CPU.

Solution

The cause was that the path to emulator had changed, so don't use ...../Android/Sdk/tools/emulator but instead ....../Android/Sdk/emulator/emulator.

Refer to the User guide: Start the emulator from the command line.

% ~/Library/Android/sdk/emulator/emulator -avd Pixel_XL_API_30

You can set the environment variable through your user settings in the operating system, for example, in your .bashrc file on Linux, or .zshrc on macOS.

export PATH="$HOME/Library/Android/sdk/emulator:$PATH"

Restart the terminal, or after running source ~/.zshrc, just use emulator directly.

% emulator -avd Pixel_XL_API_30

How do I fix missing emulator engine program for x86 CPU?

bin'" appears, one fix is to run the emulator with the full path: /Applications/Android\ Studio. app/sdk/tools/emulator64-x86 -avd test20 In your case it is maybe a other path..
go to: /Users/{username}/Library/Android/sdk/emulator..
./emulator -list-avds..
./emulator @avdName..

How do I run an emulator from command prompt?

Starting the emulator Use the emulator command to start the emulator, as an alternative to running your project or starting it through the AVD Manager. Here's the basic command-line syntax for starting a virtual device from a terminal prompt: emulator -avd avd_name [ {- option [ value ]} … ]