adb command not found

后端 未结 20 2449
刺人心
刺人心 2020-12-22 15:32

I need to run an adb forward command before I could use the ezkeyboard application which allows user to type on the phone using browser.

When

20条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-22 16:18

    in my case I added the following line in my terminal:

    export PATH="/Users/Username/Library/Android/sdk/platform-tools":$PATH

    make sure that you replace "username" with YOUR user name.

    hit enter then type 'adb' to see if the error is gone. if it is, this is what you should see: Android Debug Bridge version 1.0.40

    ...followed by a bunch of commands..and ending with this: $ADB_TRACE comma-separated list of debug info to log: all,adb,sockets,packets,rwx,usb,sync,sysdeps,transport,jdwp $ADB_VENDOR_KEYS colon-separated list of keys (files or directories) $ANDROID_SERIAL serial number to connect to (see -s) $ANDROID_LOG_TAGS tags to be used by logcat (see logcat --help)

    if you get that, run npm run android again and it should work..

提交回复
热议问题