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

Android Studio 3.0.1中出现E/chromium devtools HTTP服务器启动错误的原因?

Why You’re Seeing the "Cannot start http server for devtools" Error in Android Studio 3.0.1

Hey there, let’s break down exactly what’s causing that frustrating Chromium DevTools error in your Android Studio 3.0.1 setup. Here are the most common root causes:

  • Port Conflict: The default port used by DevTools (usually 9222) is already occupied by another program. This could be a running Chrome instance, another debugging tool, a background service, or even a leftover process from a previous failed debug session. Android Studio can’t bind to the port to start the DevTools HTTP server, hence the error.

  • Known Bug in Android Studio 3.0.1: This specific version has documented compatibility issues with the DevTools component. Google addressed many of these bugs in subsequent updates (like 3.1 and later), so the error often stems from outdated AS code that doesn’t handle edge cases in DevTools initialization properly.

  • Flawed Debugger/Device Connection: If your Android emulator or connected physical device has an unstable ADB connection, or if the device’s own DevTools service failed to start, it can trigger this error. Sometimes the emulator’s system webview or debugging stack gets into a broken state, preventing AS from communicating with DevTools.

  • Permission Restrictions: On Linux or macOS systems, Android Studio might lack the necessary permissions to bind to the required network port. This is less common, but if you’re running AS in a restricted environment, it can block the HTTP server from starting.

Quick Fixes to Try (Since You’re Already Dealing With It)

  • Check port occupancy: Run lsof -i :9222 (Linux/macOS) or netstat -ano | findstr :9222 (Windows) to see what’s using the port, then kill that process.
  • Upgrade Android Studio: Moving to a newer version (3.1+) will resolve the inherent bugs in 3.0.1 related to this issue.
  • Reset ADB and your device: Execute adb kill-server followed by adb start-server, then restart your emulator or reconnect your physical device.
  • Test permissions (Linux/macOS): Try launching Android Studio with sudo temporarily to see if the error goes away (note: this isn’t a long-term solution, but confirms if permissions are the culprit).

内容的提问来源于stack exchange,提问作者Osan Kumar Singh

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.25 06:23:12