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.exeThen 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-systemWarning: 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\toolsInstead, 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_300
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_30You 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