2017-09-29 11 views
0

私のReact Nativeアプリケーションのログにアクセスしようとしています。そのためにアンドロイドログを取得しようとすると、Adbの呼び出しに失敗しました

、私は実行しています:

react-native log-android 

をしかし、私はこの問題を取得しています:それは問題ではないので、

error: more than one device/emulator 
adb invocation failed. Do you have adb in your PATH? 
(node:24464) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): undefined 
(node:24464) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. 

adbは私のパスに間違いです。 Androidエミュレータを1つしか開いていません。

他にどのような原因が考えられますか?

答えて

0

adb devicesを試してみてください。複数ある?その場合は、接続している余分なデバイスの電源を入れます。接続されている電話機がデバイスとしてカウントされることがあります。また、zshrcやプロファイルでexport PATH=$PATH:{YOURANDROIDTOOLS}(/ users/{USER}/Library/Android/sdk/tools や/Users/{USER}/Applications/Genymotion.appなど)をzshrcまたはプロファイル

に入れたいとします。
関連する問題