[
https://issues.apache.org/jira/browse/CB-12818?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16016032#comment-16016032
]
Jan Piotrowski commented on CB-12818:
-------------------------------------
One thing that would help is a check of the gradle version, instead of only
checking if gradle is installed.
[Here|https://forum.ionicframework.com/t/task-wrapper-not-found-in-root-project-android/88882]
a user got {{Error: /usr/share/gradle/bin/gradle: Command failed with exit
code 1}}. Running {{cordova requirements}} gave him this:
{{
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-25
Gradle: installed /usr/share/gradle/bin/gradle
}}
Turns out his Gradle was v1.4 one, officially distributed for Ubuntu 14.04.
Upgrading to Gradle to v3.5 solved his problem.
> Improve `cordova requirements` to better help with debugging gradle + Android
> foo
> ---------------------------------------------------------------------------------
>
> Key: CB-12818
> URL: https://issues.apache.org/jira/browse/CB-12818
> Project: Apache Cordova
> Issue Type: Improvement
> Components: cordova-cli
> Reporter: Jan Piotrowski
> Assignee: Filip Maj
> Priority: Minor
>
> `cordova requirements` could be more helpful to help debug problems with
> gradle and Android stuff in general: Show the version and path where it found
> stuff or didn't find stuff, more notes on PATH variables to set etc.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]