[
https://issues.apache.org/jira/browse/CB-12595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15938652#comment-15938652
]
ASF GitHub Bot commented on CB-12595:
-------------------------------------
Github user filmaj commented on the issue:
https://github.com/apache/cordova-android/pull/370
Results of my testing with this.
# Mac
Side-by-side installations of Android Studio + Android Studio Preview:
```
➔ l /Applications/Android*
/Applications/Android Studio 2.4 Preview.app:
total 0
drwxr-xr-x@ 3 maj staff 102B 18 Mar 21:10 .
drwxrwxr-x+ 69 root admin 2.3K 22 Mar 18:06 ..
drwxr-xr-x@ 12 maj staff 408B 18 Mar 21:16 Contents
/Applications/Android Studio.app:
total 0
drwxr-xr-x@ 3 maj admin 102B 24 Feb 19:03 .
drwxrwxr-x+ 69 root admin 2.3K 22 Mar 18:06 ..
drwxr-xr-x@ 12 maj admin 408B 24 Feb 11:14 Contents```
Running the relevant method directly in node:
```
➔ node
> cr=require('./templates/cordova/lib/check_reqs')
> cr.get_gradle_wrapper()
'/Applications/Android Studio 2.4
Preview.app/Contents/gradle/gradle-3.4.1/bin/gradle'
```
Note that in my environment, `gradle` is not on my `PATH`:
```
➔ which gradle
gradle not found
```
# Windows
I installed the preview beside the existing Android Studio under
`C:\Program Files\Android`:
```
C:\Program Files\Android>dir
03/22/2017 11:26 PM <DIR> .
03/22/2017 11:26 PM <DIR> ..
03/13/2017 06:12 PM <DIR> Android Studio
03/22/2017 08:24 PM <DIR> Android Studio Preview
```
Running the relevant function in node:
```
C:\src\cordova-android\bin>node
> cr = require('./templates/cordova/lib/check_reqs')
> cr.get_gradle_wrapper()
C:\Program Files\Android
Android Studio
C:\Program Files\Android\Android Studio\gradle
```
`gradle` is also not on the `PATH` in Windows:
```
C:\src\cordova-android\bin>where gradle
INFO: Could not find files for the given pattern(s).
```
So, it doesn't pick the preview version, just the regular Android Studio
version - unlike on Mac. Not sure if that's a showstopper @infil00p. Also worth
noting the extra output (`console.logs` in this code).
Still setting up my Linux VM so can't report back for that at the moment.
> Android Studio Directory now contains version number, breaks gradle path
> finding.
> ---------------------------------------------------------------------------------
>
> Key: CB-12595
> URL: https://issues.apache.org/jira/browse/CB-12595
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Reporter: Joe Bowser
> Assignee: Joe Bowser
> Priority: Critical
>
> This directly related to the fix for CB-12524
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]