Closed knnithyanand closed 6 years ago
Also having this problem.
I just ran into this, too. In my case, it seems related to the Gradle daemon, despite --gradleArg=--no-daemon
?
2018-04-12T07:22:12.5433965Z Queueing build for platform android w/options: --debug,--device,--gradleArg=--no-daemon 2018-04-12T07:22:12.6075190Z Processing res/native for android 2018-04-12T07:22:25.0264273Z ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk 2018-04-12T07:22:25.0264688Z JAVA_HOME=C:\Program Files\Java\jdk1.8.0_162 2018-04-12T07:22:35.7706810Z Starting a Gradle Daemon (subsequent builds will be faster)
Also having this problem.
Im having the exact same problem.
Cordova 7.1.0 Cordova Android 6.4.0
Also tested with Cordova Android 6.3.0
I have the exact same problem. The ionic build finishes successfully and gets stuck at the end. The log shows that grade daemon is started. It appears that there must be a fix for this but it does not work: https://github.com/Microsoft/vsts-cordova-tasks/blob/2249ced3ee44b8eeda9faef20bdb09fd8b05774c/Tasks/CordovaBuild/lib/cordova-task.js#L203
Seems to be the same issue as https://github.com/Microsoft/vsts-cordova-tasks/issues/82
For what it's worth, my build started working by switching to a macOS agent; only Windows hangs with the Gradle daemon. Oddly, the Gradle Daemon seems like it's still starting on macOS:
2018-05-07T14:22:16.9812730Z Queueing build for platform android w/options: --debug,--device,--gradleArg=--no-daemon
2018-05-07T14:22:17.1492620Z Processing res/native for android
2018-05-07T14:22:18.1304590Z ANDROID_HOME=/Users/vsts/Library/Android/sdk
2018-05-07T14:22:18.1320120Z JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home
2018-05-07T14:22:19.2554410Z Starting a Gradle Daemon (subsequent builds will be faster)
2018-05-07T14:22:22.8006720Z Gradle 4.7
Update: Or maybe the build is succeeding but not actually working? Still exploring...
I'm going to close this as it's a dupe of https://github.com/Microsoft/vsts-cordova-tasks/issues/82 - I'm discussing closing it with others there, but you may want to get on the conversation.
I am using the
Ionic Command
task withcordova build android
as argument, in my logs I notice that the build was successful and has even generated the apk file however the task does not complete.My simple ionic app only has the following tasks:
Below is the last few lines of my log:
Here is my full logs: logs_182.zip