Closed tcihak-fqa closed 7 years ago
@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. So you could try to install Android Studio and see what happens or do steps, described below.
Please, follow my instructions.
:\Users\%User%\AppData\Local\Android\sdk
tools
folder.tools
folder with downloaded one.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',