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

求助:Mac端无法通过Appium Inspector检查Android设备元素

Troubleshooting Appium Inspector Blank Screen on Android (Mac 10.13)

Hey there, let’s work through this frustrating issue together! It’s super common to hit version mismatches or driver setup snags when mixing Appium Server and Inspector versions, especially with older Android versions like 8.0. Here’s what you can try step by step:

1. Fix Version Mismatch Between Server and Inspector

You’re running Appium Server 1.7.2 but using Inspector 1.5.3—these versions are too far apart to play nicely together. Appium’s Inspector and Server need to be closely aligned for full compatibility:

  • Ditch the separate Inspector app and grab an Inspector version that matches your 1.7.2 Server (look for Inspector 1.6.x or a release from the same timeframe as Appium 1.7.2).
  • Even better: Switch to Appium Desktop (the bundled app that includes both Server and Inspector) for the 1.7.2 version. This eliminates version mismatch headaches entirely.

2. Ensure UiAutomator2 is Properly Configured for Android 8.0

Android 8.0 (API 26) requires the UiAutomator2 driver (not the older UiAutomator1). Since you mentioned trying UiAutomator-related fixes, double-check these details:

  • In your desired capabilities, explicitly set:
    {
      "automationName": "UiAutomator2",
      "platformName": "Android",
      "platformVersion": "8.0",
      "deviceName": "Pixel-2",
      "app": "/path/to/your/app.apk"
    }
    
  • Run appium-doctor --android in your terminal to verify all Android dependencies are installed (SDK, build tools, etc.). Fix any missing components the tool flags.
  • On your Pixel-2 emulator: Enable Developer Options, turn on USB Debugging, and check boxes for Allow Mock Locations and USB Installation.

3. Correct Inspector Connection to Your Running Server

Don’t use the "inspect" icon from the old Inspector app—it’s probably trying to connect to its own outdated Server instance instead of your terminal-run 1.7.2 Server. Do this instead:

  1. Start your Appium 1.7.2 Server in the terminal and wait for the log line: Appium REST http interface listener started on 0.0.0.0:4723
  2. Open the Inspector, set:
    • Remote Host: localhost
    • Remote Port: 4723
  3. Paste your correct desired capabilities (from step 2) into the Inspector’s capabilities field.
  4. Click Start Session—this should connect to your running Server and load the app’s elements.

4. Debug with Detailed Server Logs

Enable debug logging to spot hidden issues. Start your Server with:

appium --log-level debug

Try starting the Inspector again, then scan the terminal logs for errors like:

  • UiAutomator2 Server failing to install on the emulator
  • Permission issues with app installation
  • Incorrect capability values
    These logs will point you exactly to what’s breaking the connection.

5. Double-Check Emulator Health

Sometimes the emulator itself is the culprit:

  • Wipe the emulator’s data (go to AVD Manager > Pixel-2 > Wipe Data) to clear any cached app or driver issues.
  • Ensure the emulator is fully booted and responsive before trying to connect with Appium.

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.20 09:00:12