Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

Reactron でうまくAndroidのログがでない場合

More than 1 year has passed since last update.

Reactronは 9090 ポートで待っているのでバインドします。

 adb reverse tcp:9090 tcp:9090

ログを出力する方法

react-native log-android

https://facebook.github.io/react-native/docs/debugging#accessing-console-logs

Androidでログを出力する

https://developer.android.com/reference/android/util/Log

adb logcat

https://techbooster.org/android/environment/522/

複数の端末を起動している場合

adb devices
List of devices attached
192.168.XX.XXX:5555 device
192.168.XX.XXX:5555 device
192.168.XX.XXX:5555 device

https://qiita.com/t2low/items/cb37cec5f864c4748e14#%E6%8E%A5%E7%B6%9A%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E7%AB%AF%E6%9C%AB%E3%81%AE%E7%A2%BA%E8%AA%8D

端末を指定してadbコマンドを実行する場合

adb -s 192.168.XX.XXX:5555 reverse tcp:9090 tcp:9090

のように「-s」オプションを付けます。

http://d.hatena.ne.jp/jogus/20150924/1443096208

town-inc
私たちは、クラウドを主軸としてさまざまな市場にITを浸透させ、永続的に成長するITカンパニーをめざしています。
https://town.biz/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away