Setup:
- VSTS build using "Hosted 2017" agent
- Cordova Build v 1.3.18
- Cordova 7.1.0
- cordova-android@^6.3.0
When building for android using the Cordova build task I get the following error:
CordovaError: 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
Screenshot of complete error log
The cordova project is in a subfolder of the repository root and is specified as the Working Directory of the Cordova Build task in the build process.
VSTS Build process configuration
Investigating the drop (at d:\a\1\s\xxx) I can see that the gradle-directory is not included in the platforms\android directory. Locally this is added with "cordova add platform android" but it seem like this is not happening on VSTS. How can I solve this on the build?
Any suggestions appreciated