MacBook端如何将Nox与Android Studio连接?已尝试Windows方法无效
Connect Nox Player to Android Studio on MacBook
Got it, let's sort out connecting Nox Player to Android Studio on your MacBook—since the Windows method doesn't translate directly here, we'll walk through macOS-specific steps to get this working:
Step 1: Locate Nox's nox_adb executable
On macOS, Nox stores its adb tool inside the app bundle. Here's how to find it:
- Right-click the Nox Player icon in your Applications folder
- Select Show Package Contents
- Navigate to
Contents > MacOS—you’ll findnox_adbhere. Its full path is typically/Applications/NoxPlayer.app/Contents/MacOS/nox_adb
Step 2: Fix adb version compatibility (critical!)
Mismatched adb versions between Android Studio and Nox will break the connection. Let’s check and align them:
- For Android Studio’s adb, open Terminal and run:
~/Library/Android/sdk/platform-tools/adb version - For Nox’s adb, run:
/Applications/NoxPlayer.app/Contents/MacOS/nox_adb version
If versions don’t match, replace the older adb with the newer one:
- Copy Android Studio’s adb (
~/Library/Android/sdk/platform-tools/adb) - Paste it into Nox’s
MacOSfolder, replacing the existingnox_adb. You may needsudofor permissions:sudo cp ~/Library/Android/sdk/platform-tools/adb /Applications/NoxPlayer.app/Contents/MacOS/nox_adb
Step 3: Enable USB Debugging in Nox Player
- Open Nox Player, go to Settings > About Tablet
- Tap the Build Number 7 times to unlock Developer Options
- Return to Settings, select Developer Options
- Toggle on USB Debugging
Step 4: Connect Nox to Android Studio via adb
- Make sure Nox Player is running
- Open Terminal and run the connect command using Nox’s adb:
/Applications/NoxPlayer.app/Contents/MacOS/nox_adb connect 127.0.0.1:62001 - Verify the connection worked by listing devices:
You should see an entry like/Applications/NoxPlayer.app/Contents/MacOS/nox_adb devices127.0.0.1:62001 deviceif it’s successful.
Step 5: Deploy your app from Android Studio
- Open your project in Android Studio
- Click the green Run button
- In the device selector dropdown, you’ll now see the connected Nox Player device—select it, and your app will deploy directly to Nox!
Troubleshooting tips
- If
127.0.0.1:62001fails, check Nox’s active port: go to Nox Player > Settings > Performance > Debugging to find the correct port (sometimes it’s 62025 or another number) - Restart Nox Player and Android Studio if the connection doesn’t show up immediately
- If you hit permission errors when replacing adb, re-run the copy command with
sudo
内容的提问来源于stack exchange,提问作者Lucy Mangkudimejo
相关产品推荐
相关产品推荐

