Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10669

cordova run --list cannot find 'adb'

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-android
    • Labels:

      Description

      λ cordova run --list --verbose
      Available android devices:
      Running command: cmd "/s /c "d:\apps\testApp\platforms\android\cordova\lib\list-devices.bat""
      ERROR: Error: cmd: Command failed with exit code 1 Error output:
      'adb' is not recognized as an internal or external command,
      operable program or batch file.
      Command finished with error code 2: cmd /s /c "d:\apps\testApp\platforms\android\cordova\lib\list-devices.bat"
      An unexpected error has occured while running list-devices with code 2: Error: cmd: Command failed with exit code 2
      Available android virtual devices:
      Running command: cmd "/s /c "d:\apps\testApp\platforms\android\cordova\lib\list-emulator-images.bat""
      ERROR: Error: cmd: Command failed with exit code 1 Error output:
      'android' is not recognized as an internal or external command,
      operable program or batch file.
      Command finished with error code 2: cmd /s /c "d:\apps\testApp\platforms\android\cordova\lib\list-emulator-images.bat"
      An unexpected error has occured while running list-emulator-images with code 2: Error: cmd: Command failed with exit code 2
      

      The problem here is that even though cordova build & cordova run find ANDROID_HOME directory using some heuristics `--list` commands do not. We should fix this to work.

        Attachments

          Activity

            People

            • Assignee:
              daserge Sergey Shakhnazarov
              Reporter:
              nikhilkh Nikhil Khandelwal
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: