You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/11/08 05:27:43 UTC

[GitHub] [cordova-android] mbayadinov edited a comment on issue #845: Can't find Gradle (Android Studio)

mbayadinov edited a comment on issue #845: Can't find Gradle (Android Studio)
URL: https://github.com/apache/cordova-android/issues/845#issuecomment-551390174
 
 
   check_reqs.js for Windows should check ```if androidStudioPath === null``` in line 113 and if so check if dir ```%USERPROFILE%\.gradle``` exists as it gets created by Android Studio when it opens a project and downloads gradle (version at the time of the comment is 5.4.1). Then check_reqs.js for Windows should search ```%USERPROFILE%\.gradle\wrapper\dists``` for first sub-dir starting with ```gradle-``` then pick it's first sub-folder (hash) then inside this hash sub-folder pick first sub-dir starting with ```gradle-```
   
   Cordova won't like gradle 5 during build process so it will download version 4.10.3 to ```%USERPROFILE%\.gradle\wrapper\dists``` and then start it's daemon.
   
   Installing gradle to ```C:\Program Files\Android\Android Studio\gradle\gradle-4.10.3``` does the trick, but it wastes 210MB

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org