Git Product home page Git Product logo

Comments (8)

BJSam avatar BJSam commented on June 12, 2024 2

yes it is stable. I think the reverse command is making it stable. BTW I have zero knowledge in adb

from nox-adb-connector.

BJSam avatar BJSam commented on June 12, 2024 1

thanks for the reply, I have done these and its working fine...

To Debug react native apps on nox player
You need to follow these steps
0. Enable developer mode and on use debugging in nox player, also disable verify apps over usb debug not necessary but in case..

  1. Run: adb connect 127.0.0.1:62001
  2. Run: yarn android
    This will install app to nox player
    After this the app should work but mostly this connection is unstable if it's stable go ahead you got luck if not
    Then
  3. Open app in nox you will see red error saying metro not connected, to solve it
  4. Run: adb connect 127.0.0.1:62001 && adb reverse tcp:8081 tcp:8081
  5. Now your app should work...

So to make it easy add an scripts key like below in package.json ..
.....
"scripts":{
....
"nox":"adb connect 127.0.0.1:62001 && adb reverse tcp:8081 tcp:8081",
....
}
....

For every time you get error for metro connection run: yarn nox

Maybe it works for other 3rd party emulators but I tried this in nox player.

from nox-adb-connector.

mousedoc avatar mousedoc commented on June 12, 2024

First,
Try this manually. Link
basically, it is the program that executes this command.

and can I see the output on the Application screen when the connection is lost?

from nox-adb-connector.

mousedoc avatar mousedoc commented on June 12, 2024

I don't know much about react native development.
it seems to be a problem with the link below.

https://stackoverflow.com/questions/42064283/could-not-connect-to-react-native-development-server-on-android
https://stackoverflow.com/questions/46235080/nox-emulator-with-react-native


This program seems to have caused the problem by executing only the adb connect. (no adb reverse)

Now, Is the connection stable?

from nox-adb-connector.

BJSam avatar BJSam commented on June 12, 2024

hay in android studio with flutter i am getting this error::

Launching lib\main.dart on ASUS Z01QD in debug mode...
Running Gradle task 'assembleDebug'...
√  Built build\app\outputs\flutter-apk\app-debug.apk.
* daemon not running; starting now at tcp:5037
* daemon started successfully
adb.exe: device '127.0.0.1:62001' not found
Installing build\app\outputs\flutter-apk\app.apk...
Error: ADB exited with exit code -1
Performing Push Install
adb: error: failed to get feature set: device '127.0.0.1:62001' not found
Error launching application on ASUS Z01QD.

can you help??

or can you write a script to check if adb connection is established for 62001 port skip else reconnect script should keep on running ...
is it good to do??

from nox-adb-connector.

mousedoc avatar mousedoc commented on June 12, 2024

You can check connected devices by adb devices

from nox-adb-connector.

yousefkazemy1 avatar yousefkazemy1 commented on June 12, 2024

The connection between adb and nox is not stable.
Actually, when connect to it, after a while it will be disconnected.
Is it a bug or maybe there is a config I've lost?
I really appreciate your help.

from nox-adb-connector.

mousedoc avatar mousedoc commented on June 12, 2024

The connection between adb and nox is not stable. Actually, when connect to it, after a while it will be disconnected. Is it a bug or maybe there is a config I've lost? I really appreciate your help.

This is simply giving the nox_adb connect command instead.

It would be better to see the log by executing the nox_adb command in cmd directly.

Others said that it was unstable because they did not do adb reverse, but I can't answer in detail because I don't know much about flutter.

from nox-adb-connector.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.