Ionic Pro, Ionic v1: Error EACCESS when packaging

Hi Team,
I am trying to pacakage my app on Ionic Cloud but i keep getting below error. This issue does not happen on my local machine so its really confusing

Running command: /usr/src/app/hooks/after_prepare/010_add_platform_class.js /usr/src/app
Error: spawn EACCES

Regards

1 Like

Ionic Team is reachable via support:
http://ionicframework.com/support#support

We here don’t have enough experience with that yet.

Are you doing anything special in that hook?

Thanks! so i deleted the hook and i think it fixed the error.

I now have an error relating to Gradle

You have been opted out of telemetry. To change this, run: cordova telemetry on.
ANDROID_HOME=/opt/android-sdk
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: /opt/android-sdk/tools/templates/gradle/wrapper
e[32;1mRunning after script…e[0;m
e[32;1m$ clean-upe[0;m
Cleaning up files…
Successful clean up
e[31;1mERROR: Job failed: exit status 1
e[0;m

Kindly assist

Fixed but with a new issue.

The Build log shows successful but build status shows as failed. logs below

BUILD SUCCESSFUL

Total time: 4 mins 24.272 secs
Built the following apk(s):
/usr/src/app/platforms/android/build/outputs/apk/android-armv7-debug.apk
/usr/src/app/platforms/android/build/outputs/apk/android-x86-debug.apk
Crosswalk info:
After much discussion and analysis of the market,
we have decided to discontinue support for Android 4.0 (ICS) in Crosswalk starting with version 20,
so the minSdkVersion of Cordova project is configured to 16 by default.

Uploading apk…
e[32;1mRunning after script…e[0;m
e[32;1m$ clean-upe[0;m
Cleaning up files…
Successful clean up
e[31;1mERROR: Job failed: exit status 1
e[0;m

A post was split to a new topic: Ionic Pro: ERROR: Job failed: exit status 1

I also had the same issue while building. I deleted the hook file and everything went fine.