Android Studio模拟器启动卡顿求助:运行基础程序时持续加载无法启动
Hey there, let's work through this emulator stuck issue together—since you're using a 250GB Samsung SSD, storage speed isn't the culprit here. Let's dive into targeted fixes that usually resolve this kind of loading loop:
Verify Hardware Acceleration is Enabled & Working
Virtualization is critical for emulator performance. First, check if your BIOS has Intel VT-x (for Intel CPUs) or AMD-V (for AMD CPUs) turned on. Then, confirm the right driver is installed in Android Studio:- Go to
Tools > SDK Manager > SDK Tools - For Intel: Make sure "Intel x86 Emulator Accelerator (HAXM Installer)" is checked and installed. Verify it's running with
sc query intelhaxmin an admin command prompt (look for "RUNNING" status). - For AMD: Install "AMD Hypervisor Driver for Android Emulator" and check its status with
sc query amdhyperv.
- Go to
Tweak Emulator Memory Allocation
Overallocating RAM to the emulator can cause system resource bottlenecks. Edit your AVD:- Open AVD Manager, click the pencil icon next to your emulator
- Go to
Show Advanced Settings - Lower the
RAMvalue (try 1024MB or 1536MB—avoid exceeding 1/4 of your physical RAM) and reduceVM Heapto 256MB if needed.
Switch to Cold Boot Instead of Quick Boot
Quick Boot sometimes gets stuck due to corrupted cached state. In the AVD edit screen:- Under
Emulated Performance, setBoot optiontoCold Boot - Save changes and restart the emulator.
- Under
Wipe Emulator Data & Cache
Corrupted user data can freeze the emulator startup:- In AVD Manager, select your emulator, click the dropdown menu (⋮)
- Choose
Wipe Data, then launch the emulator again.
Update Android Studio & Emulator Components
Outdated software often causes compatibility issues:- Go to
File > Settings > Appearance & Behavior > System Settings > Updatesto check for Android Studio updates - In
SDK Tools, update theAndroid Emulatorand the system image your AVD uses (e.g., Android 14 x86_64).
- Go to
Resolve Virtualization Conflicts
Other virtualization tools (like VirtualBox, VMware, or WSL2) can clash with the Android emulator:- If using WSL2, temporarily disable Hyper-V by running
bcdedit /set hypervisorlaunchtype offin an admin command prompt, then restart your PC. Alternatively, configure the emulator to use Hyper-V (enable it in Windows Features and install the Hypervisor Framework in SDK Tools).
- If using WSL2, temporarily disable Hyper-V by running
Create a New AVD
Sometimes the existing AVD has corrupted configuration. Try creating a new emulator with default settings:- Pick a recent Android version (Android 13/14), x86_64 architecture, and default hardware profile.
If none of these steps work, share the emulator startup logs (from View > Tool Windows > Logcat when trying to launch the emulator) or the output from the emulator command line tool—this will help pinpoint the exact issue.
内容的提问来源于stack exchange,提问作者shlezz

