You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/09/12 18:37:49 UTC

[GitHub] [cordova-android] mlynch opened a new issue #1347: Could not find an installed version of Gradle

mlynch opened a new issue #1347:
URL: https://github.com/apache/cordova-android/issues/1347


   # Bug Report
   
   ## Problem
   
   When running `cordova platform add android@10` and then `cordova build` on Windows 10, this error is thrown:
   
   ```shell
   Checking Java JDK and Android SDK versions
   ANDROID_SDK_ROOT=C:/Users/Max/AppData/Local/Android/Sdk (recommended setting)
   ANDROID_HOME=C:/Users/Max/AppData/Local/Android/Sdk (DEPRECATED)
   Using Android SDK: C:\Users\Max\AppData\Local\Android\Sdk
   Could not find an installed version of Gradle either in Android Studio,
   or on your system to install the gradle wrapper. Please include gradle
   in your path, or install Android Studio
   ```
   
   Similar issue as to #922 but I was not able to get it working by trying the recommended fix in that issue and, looking at the code for `get_gradle_wrapper` in `check_reqs.js`, I don't see how this will work at all on Windows as there is no `gradle` binary anymore AFAIK
   
   ### What is expected to happen?
   
   The Gradle check probably needs to be updated since it is no longer a binary in recent Android Studios (such as the one I'm using: `Android Studio Arctic Fox : 2020.3.1`
   
   ### What does actually happen?
   
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   `cordova platform add android@10`
   `cordova build`
   
   
   ### Version information
   <!--
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   Windows 10
   Android Studio Arctic Fox : 2020.3.1
   Cordova 10.0.01
   `cordova-android` 10.1.0`
   
   
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [cordova-android] mlynch closed issue #1347: Could not find an installed version of Gradle

Posted by GitBox <gi...@apache.org>.
mlynch closed issue #1347:
URL: https://github.com/apache/cordova-android/issues/1347


   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [cordova-android] mlynch commented on issue #1347: Could not find an installed version of Gradle

Posted by GitBox <gi...@apache.org>.
mlynch commented on issue #1347:
URL: https://github.com/apache/cordova-android/issues/1347#issuecomment-917694690


   Okay, thanks, I see that now on the docs https://cordova.apache.org/docs/en/10.x/guide/platforms/android/
   
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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


[GitHub] [cordova-android] breautek commented on issue #1347: Could not find an installed version of Gradle

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1347:
URL: https://github.com/apache/cordova-android/issues/1347#issuecomment-917688345


   Once upon a time, a gradle executable was provided by Android Studio if I recall correctly.
   
   Now you need to install Gradle (and potentially configure the `PATH` system variable for command line usage / external tooling to find the binary executable) via [gradle.org](https://gradle.org/).
   
   The latest should be sufficient, as we use the gradle binary to install a gradle wrapper, which is essentially a localized gradle environment using a specific gradle version that cordova-android defines.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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