Build Error on Ionic Package Build


#1

Hi, I’m trying to build my app on Ionic Package Build, which I have no luck on.
The error message is as below.
Can anybody tell me what I have gone wrong?
I’m still newbie, feeling lost.
Thank you in advance.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':packageX86Debug'.
> java.io.IOException: No space left on device

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

FAILURE: Build failed with an exception.

* What went wrong:
Failed to notify build listener.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Failed to upload apk to storage please retry your build.
Running after script...
$ clean-up
Cleaning up files...
Successful clean up
ERROR: Job failed: exit status 1

#2

Ionic Pro is a hosted and closed source service, so there is not much we, the community, can help you with, sorry. Check these:

You can - and should - contact support at http://ionicframework.com/support#support


What is your ionic info output?


#3

Thank you, Sujan.

When I type ‘ionic info’ on my local computer, the output is as below:

(What I reported above is the error on the cloud package building of Ionic Pro, though. At this moment I cannot make builds on my local computer and cloud as well.)

cli packages: (/usr/local/Cellar/node/6.9.1/lib/node_modules)

    @ionic/cli-utils  : 1.15.2
    ionic (Ionic CLI) : 3.15.2

global packages:

    cordova (Cordova CLI) : 7.1.0 

local packages:

    @ionic/app-scripts : 1.1.4
    Cordova Platforms  : ios 4.4.0
    Ionic Framework    : ionic-angular 2.2.0

System:

    ios-deploy : 1.9.0 
    ios-sim    : 5.0.13 
    Node       : v6.9.1
    npm        : 4.4.1 
    OS         : macOS Sierra
    Xcode      : Xcode 9.0.1 Build version 9A1004 

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro

#4

You are building for iOS?
What is happening locally? (Best open a new topic for that…)
ionic serve works?

This is both really old and should be upgraded, but is probably not the cause of your problem.

sounds like a problem for support.


#5

No, Sujan. I’m not building for iOS.
I am not building locally anymore, rather trying to build on cloud with Ionic Pro account.
Yes, ionic serve works well.

At this moment I’m trying to build for Android since I managed to build for iOS successfully on my local machine.
As you pointed out, since I’ve been back to Ionic for many months, my dependencies and Android gradle version has some problem matching up with.
So I chose to build on cloud machine with Ionic Pro support. (Actually therefore I started my Ionic Pro service today, but have no luck so far :sweat:)

I’m trying to package build for Android here:
https://dashboard.ionicjs.com/app/d6cc1195/code/builds/d5313bf0-0c60-40fb-bfb0-d67ffc4db675/package

I have another error message what I retried package building on cloud, as below:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':packageX86Debug'.
> java.io.IOException: No space left on device

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1 mins 16.537 secs

FAILURE: Build failed with an exception.

* What went wrong:
Failed to notify build listener.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: /usr/src/app/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':packageX86Debug'.
> java.io.IOException: No space left on device

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

FAILURE: Build failed with an exception.

* What went wrong:
Failed to notify build listener.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Failed to upload apk to storage please retry your build.
Running after script...
$ clean-up
Cleaning up files...
Successful clean up
ERROR: Job failed: exit status 1