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

Android Studio运行Google开发者培训Happy Birthday项目时遭遇ADB命令被拒绝错误的修复方案咨询

Hey there, let's tackle this ADB connection issue you're hitting with your Pixel 3XL API 29 emulator in Android Studio Arctic Fox. These glitches are pretty common, so here are some practical fixes to get your Happy Birthday project up and running:

Fixes for "ADB rejected shell command" & "Failed to start monitoring emulator-5554" Errors
  • Restart the ADB Server
    This is the quickest first step for most ADB hiccups. Open the Terminal in Android Studio (look for it in the bottom toolbar) and run these two commands sequentially:

    adb kill-server
    adb start-server
    

    Give it a few seconds to restart, then try launching your project again.

  • Wipe Emulator Data & Cold Boot
    Corrupted emulator cache often causes connection drops. Here's how to reset it:

    1. Open the Device Manager (the phone+tablet icon in the top-right corner of Android Studio).
    2. Locate your Pixel 3XL API 29 emulator, click the three-dot menu (⋮) next to it.
    3. Select Wipe Data and confirm the action when prompted.
    4. After wiping, choose Cold Boot Now instead of the regular boot. Cold boot skips cached system state, which usually fixes monitoring issues.
  • Verify Emulator & ADB Compatibility
    Android Studio Arctic Fox (2020.3.1) has specific compatibility with SDK components. Double-check these:

    1. Go to Tools > SDK Manager.
    2. In the SDK Platforms tab, find Android 10 (API 29) and make sure the Google APIs Intel x86 Atom System Image is installed and updated.
    3. Switch to the SDK Tools tab, ensure Android SDK Platform-Tools is on a version that works with Arctic Fox.
  • Kill Conflicting Processes
    Other apps (like antivirus tools or third-party ADB-dependent software) might be blocking the connection.

    • On Windows: Open Task Manager, find and end any adb.exe or emulator.exe processes.
    • On macOS/Linux: Run these commands in your system terminal:
      pkill adb
      pkill emulator
      

    Restart Android Studio and the emulator afterward.

  • Recreate the Emulator Instance
    If all else fails, the emulator itself might be corrupted. Delete the existing one and make a new one:

    1. In Device Manager, select your Pixel 3XL emulator and click the delete icon (🗑️).
    2. Click Create Device, follow the wizard to reselect Pixel 3XL, pick the API 29 system image, and complete the setup.

After trying these steps, your emulator should connect properly to ADB, and you'll be able to run your Happy Birthday project without those frustrating errors.

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.04.30 03:22:50