cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-12677) `cordova requirements android` fails when Android Studio is in "Program Files" instead of "Program Files (x86)"
Date Thu, 20 Jul 2017 18:30:00 GMT


ASF GitHub Bot commented on CB-12677:

Github user infil00p commented on the issue:
    Did you see the fix @purplecabbage did to pull this info from the Windows registry for
Windows users? We're probably going to go with that solution for Windows because of the whole
PATH issue.  Mac OS and Linux users are able to install Gradle without a problem.  There are
already other issues with using or requiring Android Studio as a dependency, such as the fact
that some people don't ever use the IDE

> `cordova requirements android` fails when Android Studio is in "Program Files" instead
of "Program Files (x86)"
> ---------------------------------------------------------------------------------------------------------------
>                 Key: CB-12677
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-android
>    Affects Versions: 6.2.1
>         Environment: Windows 7, 64-bit
> Android Studio 2.3.1
> cordova 6.5.0
> cordova-android 6.2.1
>            Reporter: jakub-g
>              Labels: android-next
> See
> basically on my machine in `cordova/lib/check_reqs.js`:
> {code}
>         process.env['ProgramFiles'] === 'C:\\Program Files (x86)'
> {code}
> 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:
> {code}
>     C:\Program Files\Android\Android Studio
>     C:\Program Files (x86)\Android\android-sdk
> {code}
> (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?

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message