adb command not found

后端 未结 20 2292
刺人心
刺人心 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:11

    Mac users just open /Users/(USERNAME)/.bash_profile this file in a editor.
    and add this line to add path.

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

    this is the default path if you install adb via studio. and dont forget to change the username in this line.

    0 讨论(0)
  • 2020-12-22 16:11

    On my Mac (OS X 10.8.5) I have adb here:

    ~/Library/android-sdk-mac_86/platform-tools
    

    So, edit the $PATH in your .bash_profile and source it.

    0 讨论(0)
  • 2020-12-22 16:12

    UNABLE TO LOCATE ADB #SOLVED Simply Download Sdk platform tools.https://developer.android.com/studio/releases/platform-tools.html Extract the Downloaded file. Go to Sdk Manager in Android Studio and copy the link. Go to file Explorer and paste the path for Sdk you copied to view the Sdk files. You will notice that the Adb file is missing, open downloaded file (platform tools) copy contents and replace every content in your Sdk tool file (the file where you noticed adb is missing)and save. You are good to go.

    0 讨论(0)
  • 2020-12-22 16:12

    In my case this is the solving of this problem

    1. Make sure you have installed the android SDK. Usually the location of SDK is located to this location

      /Users/your-user/Library/Android/sdk

    2. After that cd to that directory.

    3. Once you are in that directory type this command ./platform-tools/adb install your-location-of apk

    0 讨论(0)
  • 2020-12-22 16:17

    Make sure adb is in your user's $PATH variable.

    or

    You can try to locate it with whereis and run it with ./adb

    0 讨论(0)
  • 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..

    0 讨论(0)
提交回复
热议问题