You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何在Android Studio的Pre-Marshmallow版本模拟器中可靠安装Google Play Store?

Hey folks,

Let’s break this down clearly—because half the tutorials out there for installing Google Play Store on pre-Marshmallow Android emulators are either outdated, incomplete, or just plain broken. First, the easy win for newer versions, then the reliable method for the trickier older ones.

Installing Google Play Store on Android Studio Emulators

For API Level 24 (Nougat) and Above: No Fuss Needed

If you’re working with API 24 or higher, stop right here. When creating a new emulator in the AVD Manager, just pick a system image that has "Google Play" labeled next to it (not "Google APIs"). This image comes with a fully functional, updatable Play Store pre-installed—sign in and go, no extra steps required.

For Pre-Marshmallow (API ≤23): The Only Reliable Method

I’ve wasted hours on tutorials that link to dead APKs, skip critical recovery steps, or result in a Play Store that crashes the second you open it. Here’s the process that’s worked for me every time:

Step 1: Create a Compatible Emulator

  • Open AVD Manager and create a new Virtual Device.
  • Choose an ARM-based system image (x86/x86_64 images have terrible compatibility with older Play Store versions). Look for "Google APIs" (pre-Marshmallow images don’t have the "Google Play" pre-built option).
  • Allocate at least 2GB of RAM—older Play Store versions are resource hogs and will crash on underpowered emulators.

Step 2: Grab the Right GApps Package

You need a GApps (Google Apps) package matched exactly to your API level and architecture. Stick to the open-source GApps project (no sketchy third-party sites!)—search for "open gapps arm [your API level]" and grab the "nano" or "pico" package (full packages will bloat the emulator unnecessarily).

  • API 23 (Marshmallow): ARM 6.0 GApps
  • API 22 (Lollipop): ARM 5.1 GApps
  • Adjust for older API levels accordingly.

Step 3: Install GApps via Recovery

  1. Start the emulator and wait for it to fully boot (give it a minute—older emulators are slow).
  2. Open your terminal/command line and navigate to your Android SDK’s platform-tools folder. On macOS that’s usually ~/Library/Android/sdk/platform-tools, on Windows it’s C:\Users\<YourName>\AppData\Local\Android\Sdk\platform-tools.
  3. Push the GApps ZIP to the emulator’s SD card:
    adb push /path/to/your/gapps.zip /sdcard/
    
  4. Reboot the emulator into recovery mode:
    adb reboot recovery
    
  5. In the recovery menu (basic text interface, use volume keys to navigate, power to select):
    • Select "Install zip from sdcard"
    • Navigate to /sdcard/ and pick your GApps ZIP
    • Confirm the installation, wait for it to finish
    • Select "Reboot system now"

Step 4: Post-Install Tweaks

  • When the emulator restarts, you’ll see the Play Store icon. Open it, sign in with your Google account, and let it update any required Google services—this is crucial for stability.
  • If you get crashes, head to Settings > Apps > Google Play Services > Clear Cache, then restart the emulator.

Critical Warnings

  • Skip random standalone APKs: Don’t download Play Store APKs from random sites—they almost never play nice with older emulator system images, and you’re risking malware.
  • x86 images are risky: If you must use an x86 emulator, find x86-specific GApps, but be prepared for hit-or-miss compatibility with pre-Marshmallow versions.
  • Enable hardware acceleration: In AVD Manager, make sure hardware acceleration is turned on—otherwise, the older emulator will be painfully slow.

This method is more involved than the newer API levels, but it’s the only one that doesn’t leave you staring at a crashed Play Store or a non-functional sign-in screen.

内容的提问来源于stack exchange,提问作者Geob

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.26 10:05:19