如何将NOX模拟器与Android Studio连接?已尝试多种方法未果
Connecting Nox Player to Android Studio: Step-by-Step Guide
Hey there! I’ve helped dozens of developers get Nox Player working seamlessly with Android Studio, so let’s break this down into simple, actionable steps—no confusing hoops to jump through.
Step 1: Enable USB Debugging in Nox Player
First, make sure Nox has debugging turned on:
- Open Nox Player, click the gear icon (Settings) in the top-right corner.
- If you don’t see Developer Options, go to About Tablet and tap the Version Number 7 times to unlock it.
- Go back to Settings, open Developer Options, and toggle on USB Debugging.
- Also, head to Advanced Settings (in Nox’s main settings) and ensure Allow computer to connect via ADB is enabled.
Step 2: Locate Nox’s ADB Executable
Nox comes with its own ADB tool—you’ll need to use this to establish the connection. Here’s where to find it:
- Windows: Default path is
C:\Program Files (x86)\Nox\bin - Mac:
/Applications/Nox App Player.app/Contents/MacOS - Linux: Typically in
~/Nox/bin(depending on your installation) - Verify the folder contains
adb.exe(Windows) oradb(Mac/Linux) before moving on.
Step 3: Connect Nox to Android Studio via ADB Command
Now let’s link the two tools using the command line:
- Open Command Prompt (Windows) or Terminal (Mac/Linux).
- Navigate to Nox’s ADB folder using the
cdcommand. For example, on Windows:cd "C:\Program Files (x86)\Nox\bin" - Run the connection command:
Note: 62001 is Nox’s default ADB port. If this fails, check Nox’s Advanced Settings for a custom port (some versions use 62025 for the second emulator instance).adb connect 127.0.0.1:62001 - You should see a message saying
connected to 127.0.0.1:62001if successful.
Step 4: Verify the Connection in Android Studio
- Open Android Studio and go to Tools > Device Manager (or click the device dropdown in the top toolbar).
- You should now see your Nox Player emulator listed as an available device.
- If it doesn’t show up immediately, restart Android Studio or Nox Player, then re-run the
adb connectcommand.
Troubleshooting Common Issues
- ADB Version Mismatch: Run
adb versionin both Nox’s ADB folder and Android Studio’s SDKplatform-toolsfolder. If versions differ, copy Nox’sadbfiles to replace the ones in Android Studio’splatform-tools(back up the original files first!). - Port Conflict: If
62001is already in use, change Nox’s ADB port in Settings > Advanced Settings > Customize ADB port, then use the new port in theadb connectcommand. - Connection Refused: Ensure Nox Player is running, USB Debugging is enabled, and no other emulators are using the same port.
Give these steps a try—most developers get it working on the first go. If you hit any specific errors, feel free to share the exact message and I’ll help you work through it!
内容的提问来源于stack exchange,提问作者user9576863
相关产品推荐
相关产品推荐

