parvat
parvat

Reputation: 171

Nox App Player not connect with Android Studio

command not execute

Now I am going to command prompt and go to the bin folder under the installation path of Nox App Player, and I input this command: nox_adb.exe connect 127.0.0.1:62001.

enter image description here

Upvotes: 15

Views: 41098

Answers (12)

Tony
Tony

Reputation: 4591

I get:

  • Nox-Player with Android 9
  • Android Studio Giraffe | 2022.3.1 Patch 1

Open terminal tab in Android Studio, type adb connect 127.0.0.1:62025, enter and it works

enter image description here


The key here is we have to find out the real port that is opened by Nox

In my case, it is 62025

Good luck!


Update

DO NOT use adb.exe of Nox. It conflicts with Android Studio. Actually, we don't need it because we got adb from Android Studio

I did try Nox-adb, it works for a period time but after that Android Studio disconnected it automatically

Upvotes: 1

Waleed Qutob
Waleed Qutob

Reputation: 57

Praise be to God, it's finally fixed. I tried all the other solutions and none worked, I even tried updating to the latest version before. I guess updating doesn't update all the files.

The issue was the either adb.exe or nox-adb.exe had an issue, it's not the port that's the issue, it's the adb itself, poiting to a null location, it's weird how it got corrupted. replacing the DLLs as mentioned by a different answer didn't work for me, that's how I know it's the adb executables.

Anyways, the solution is to extract the adb.7z file that's in the bin folder and replace the old files, that's it :)

Short answer:

Extract "C:\Program Files\Nox\bin\adb.7z" & replace all

Upvotes: 1

Jayesh
Jayesh

Reputation: 111

I faced same problem and trying to connect nox player with studio, with many attempts I finally found perfect cure for this issue. You have to make sure adb version for both android sdk and nox player uses same.

If they are different, then make them same by replacing these files

(adb.exe, nox_adb.exe, AdbWinApi.dll, AdbWinApi_.dll)

of nox player bin folder (C:\Program Files\Nox\bin\Nox\bin) from android sdk (C:\Users\harvi\AppData\Local\Android\Sdk\platform-tools). And that's it nox player now easily connect with android studio.

Note: create nox_adb file from adb.exe from sdk folder.

Upvotes: 2

Fahim Fahad Leo
Fahim Fahad Leo

Reputation: 56

I just copied the adb.exe from C:\Users\user\AppData\Local\Android\Sdk\platform-tools and renamed it to nox_adb.exe and pasted it in the nox installation location replacing the original one. after that it works every time.

Upvotes: 1

m'hd semps
m'hd semps

Reputation: 684

  • Press Ctrl+Shift+Esc.
  • Task Manager should open.
  • Click "More details" from below.
  • A larger list of apps should appear.
  • Locate adb.exe select it then click 'End Task'.
  • Restart Nox or do what @kundan's answer suggests.

Upvotes: 0

user16922318
user16922318

Reputation: 11

find adb.exe file path, open console and write: C:\Users\petra\AppData\Local\Android\Sdk\platform-tools (it has to be your path to adb file)\adb.exe connect 127.0.0.1:62001 make sure nox is turned on and try this till you see:

* daemon not running; starting now at tcp:5037
* daemon started successfully
connected to 127.0.0.1:62001

Upvotes: 1

farruq
farruq

Reputation: 29

I am solving this problem everyday by running vscode first and then running nox. then killing adb.exe process tree by Task manager and then running nox_adb.exe connect 127.0.0.1:62001 (or 127.0.0.1:52001). Doing all these steps several time everyday.

Upvotes: 2

sasan saremi
sasan saremi

Reputation: 1

input this command : nox_adb.exe connect 127.0.0.1:62025

Upvotes: 0

fixxy_dev
fixxy_dev

Reputation: 11

This worked for me:

(xxxxx = port number, i used 62001)

also

Important to include "" (quotation marks)...

"C:\Program Files\nox\Nox\bin\nox_adb.exe" connect 127.0.0.1:xxxxx

Upvotes: 1

user9559544
user9559544

Reputation:

find the file location of nox and copy-it

write in cmd:

cd and write the location here

and

adb.exe connect 127.0.0.1:5037

people write "nox.adb.exe" but it's false

Upvotes: 3

kundan
kundan

Reputation: 203

You need to find the correct port and use it. I faced the same problem so here is what I did.

  1. Kill the server:

    nox_adb.exe kill-server
    
  2. Now try to connect on any port number, say, 62001:

    C:\Program Files (x86)\Nox\bin>nox_adb.exe connect 127.0.0.1:62001
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    unable to connect to 127.0.0.1:62001:62001
    
  3. Now try to use port 5037 as mentioned in the output above:

    C:\Program Files (x86)\Nox\bin>nox_adb.exe kill-server
    C:\Program Files (x86)\Nox\bin>nox_adb.exe connect 127.0.0.1:5037
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    connected to 127.0.0.1:5037
    

It should work fine then.

Upvotes: 19

Try this :

cd C:\Program Files (x86)\Nox\bin

and

C:\Program Files (x86)\Nox\bin>nox_adb.exe connect 127.0.0.1:5037

Upvotes: 2

Related Questions