-
Notifications
You must be signed in to change notification settings - Fork 22
Cordova task is failing to complete the build #82
Comments
Anyone on this. |
Hi--it's possibly a known issue, although there is very little detail here. One workaround you could try is to include /p:instanceid=[instanceid] in the Arguments field for the Cordova build step, where [instanceid] is the code taken from the folder in %ProgramData%\Microsoft\VisualStudio\MDA which is relevant to your installation (if there is only one VS 2017 installed you should see only one). Hope this helps. |
@dmittal02 You reported this issue a day after Cordova was upgraded to 8.0.0. You might try configuring your build task to use an older version ("7.1.0" for example), if possible. I've also had trouble building a simple (from the CLI - cordova create hello com.example.hello HelloWorld) using this same task with Cordova 8. I'm using the VSTS Hosted macOS build agents and getting the error: TypeError: Cannot read property 'fail' of undefined |
I was actually using 7.1. to overcome this issue, we used daemon kill and then it worked. so still suspect, it it some bug\known issue. |
Using 7.1 fixed that error for me as well |
I'm getting this one to |
I have faced the same issue I resolved it by creating taco.json in the project root, specifying "cordova-cli" version like below: { |
@dmittal02 How did you do this?
Im having the same issue, and using different cordova versions or createing the taco.json dosent work |
Seems to be the same problem as #85 |
Visual Studio 2017 (and by extension MSBuild and vsts-cordova-tasks) supports Cordova v6.3.1 only. Are there any failures using this version of Cordova? |
Hi Drew If i set the cordova version to 6.3.1 i get the following error:
Is there a plan for getting support for higher versions of Cordova? |
i have to use Cordova 7.1.0 or 8.0.0, because i have to support Android 8 and Android 8.1. Some customers update there devices to Android 8 and Android 8.1. my task is always support important current iOS and Android versions with my app. so, Cordova 6.3.1 doesn't fit to the requirements. Cordova 6 only supports Android API 26. -> https://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html with Cordova 8 i get the an issue on remotebuild like the others: Cannot read property 'fail' of undefined. currently Cordova 7.1.0 is working for Android API 27 and iOS, but if the next API only needs Cordova 8, i have a problem.... so @drewgillies in worst case, i need an alternative to "remotebuild" my app on a mac... :/ |
I understand the concern, but we are not implementing support for versions other than 6.3.1 at this stage. I can't comment further now. Given this hard blocker, if there are no other 6.3.1-related concerns I'll go ahead and close this issue. I know it's not the desired outcome. |
Hi Drew. I really think that only supporting cordova 6.3.1 should be mentioned rather highly in all documentation, as it would be a showstopper for many. |
@sithwarrior I got this error on my ionic app too, changing to cordova 6.4.0 fixed this issue. |
Maybe this will help someone. I had been using the Ionic Command with the parameters I instead broke the single command into two. Now I run the Ionic Command with the parameters |
Having this issue too. Problem seems to solve itself when restarting Virtual device... When using --verbose flag I'm getting
|
@trevor-trou I tried your fix but it didn't work! Do you have any other suggestions!? |
I am experiencing the same. Adding --gradleArg=--no-daemon did nothing. Temporary did this by letting the build task continue on error and set the timeout to 15 minutes. The following copy to artifact staging will do the rest and some "error handling". Ofc this is only solution which should be used only once - during testing the pipeline... |
Another cool way of handling this which works for me (does not start the daemon) is to add this line as a command line before all ionic builds: Windows: Linux: Those disable the daemon by using a user wide configuration file. Taken from docs on Gradle Daemon. Thus this requires a fixed OS on the target system. Finally I think this should be an accepted solution. Someone may put this as a more flexible script and/or specific for job. EDIT on 17-09-2019:
|
Hi. I had the same problem. I changed the "Agent pool" to "Hosted Ubuntu 1604" and worked. |
Try to check one of this things:
this solved my case |
Any update on this? |
As per the readme of the project. it seems to be deprecated/EOL.
|
I totally agree that this should be an accepted solution. After trying many solutions, this was the one that worked. But I should add that if you try this solution and then get memory problems, you need to adjust the memory used by gradle, like this:
The default was changed from 1g to 512m in Gradle 5.0. Here in my example I'm setting the memory to 2GB (Xmx2g). |
we are facing issue with the cordova task.
In the task with command build android and using hosted 2017 agent, task does not complete and after some time build get cancelled.
Any idea if it is known issue.
The text was updated successfully, but these errors were encountered: