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)"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.2.1
    • cordova-android-7.0.0
    • cordova-android
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: