-
Notifications
You must be signed in to change notification settings - Fork 27
VSTS build error using Cordova version 6.5.0 #71
Comments
@tcihak-fqa Hi, what kind of OS do you use? |
This is on the VSTS Hosted agent, so it's Windows Server 2012 R2. |
@tcihak-fqa Ok, thanks for information. That bug appears because of update of android sdk tools. So cordova refers on folder which is not exists in new android sdk tools versions now. While cordova is fixing that bug I can offer you temporary solution. Early that bug was fixed by installing of Android Studio in Windows. But it's not helped in MacOS. Please, follow my instructions.
Hope, this will help. |
Here's what I am doing in my VSO build definition:
|
@tcihak-fqa do those steps work for you? If so, would you be able to create a gist with your scripts? |
Using the Cordova Build task in VSTS and setting the Cordova Version to 6.5.0.
The Cordova build now requires gradle to be installed.
Here's the 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
at Object.module.exports.check_gradle (d:\a\1\s\platforms\android\cordova\lib\check_reqs.js:146:18)
at GradleBuilder.prepEnv (d:\a\1\s\platforms\android\cordova\lib\builders\GradleBuilder.js:176:23)
at Api.module.exports.run (d:\a\1\s\platforms\android\cordova\lib\build.js:152:20)
at d:\a\1\s\platforms\android\cordova\Api.js:348:43
at _fulfilled (d:\a\1\s\platforms\android\cordova\node_modules\q\q.js:854:54)
at self.promiseDispatch.done (d:\a\1\s\platforms\android\cordova\node_modules\q\q.js:883:30)
at Promise.promise.promiseDispatch (d:\a\1\s\platforms\android\cordova\node_modules\q\q.js:816:13)
at d:\a\1\s\platforms\android\cordova\node_modules\q\q.js:624:44
at runSingle (d:\a\1\s\platforms\android\cordova\node_modules\q\q.js:137:13)
at flush (d:\a\1\s\platforms\android\cordova\node_modules\q\q.js:125:13)
name: 'CordovaError',
message: 'Could not find an installed version of Gradle either in Android Studio,\nor on your system to install the gradle wrapper. Please include gradle \nin your path, or install Android Studio',
The text was updated successfully, but these errors were encountered: