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

`cordova requirements android` fails when Android Studio is in "Program Files" instead of "Program Files (x86)"

    Details

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

      Windows 7, 64-bit
      Android Studio 2.3.1
      cordova 6.5.0
      cordova-android 6.2.1

      Description

      See http://stackoverflow.com/a/43523141/245966

      basically on my machine in `cordova/lib/check_reqs.js`:

              process.env['ProgramFiles'] === 'C:\\Program Files (x86)'
      

      whereas I have android studio in `C:\Program Files` and I think I might not be the only one with the same problem.

      In fact on my machine I have the following folders somehow:

          C:\Program Files\Android\Android Studio
          C:\Program Files (x86)\Android\android-sdk
      

      (The second folder is some leftovers from old installation, not used anymore; I keep things in `D:\java\android\sdk` since quite a while)

      What would be a good fix in your opinion, other than checking both folders?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jakub-g jakub-g
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: