Every time I build android app package using ionic cloud build service -> it always fails
example :
#1 Failed Android 2017-07-20 4:35 AM
there’s about 6 or 7 failed like this
am I have to build it locally
Every time I build android app package using ionic cloud build service -> it always fails
example :
#1 Failed Android 2017-07-20 4:35 AM
there’s about 6 or 7 failed like this
am I have to build it locally
How about posting the error message Ionic Package shows you for each build so we can actually look at what is going wrong?
here’s it , when I build the package it says “Preparing your resources” forever
ANDROID_HOME=/opt/android-sdk
JAVA_HOME=/usr/lib/jvm/java-8-oracle
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
Post your ionic info
output please. You have to be using Cordova android 6.2.3 for Cloud builds to work.
here’s it
Your system information:
ordova CLI: 6.5.0
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 7
Node Version: v6.10.0
Xcode version: Not installed
You should update both to recent versions - 7.0.1 and 3.5.0.
This old version of Ionic doesn’t include the platform version, so please run cordova platform list
.
I made all that
and the same issues , my environment info now
global packages:
@ionic/cli-utils : 1.5.0
Ionic CLI : 3.5.0
System:
Node : v6.10.0
OS : Windows 7
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
npm : 5.0.3
Run this in your project directory please - this output also inlcudes no project information.
Download tools_r25.2.3-windows.zip from Android Downloads.
Extracted zip on desktop
Replaced C:\Users\username\AppData\Local\Android\sdk\tools with extracted sub-folder tools/
In project folder:
$ cordova platforms remove android
$ cordova platforms add android
Yes , here’s the info
global packages:
@ionic/cli-utils : 1.5.0
Cordova CLI : 7.0.1
Ionic CLI : 3.5.0
local packages:
@ionic/app-scripts : 2.0.2
@ionic/cli-plugin-cordova : 1.4.1
@ionic/cli-plugin-ionic-angular : 1.3.2
Cordova Platforms : android 6.2.3 ios 4.4.0
Ionic Framework : ionic-angular 3.5.3
System:
Node : v6.10.0
OS : Windows 7
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
npm : 5.0.3
Now after updating - I even can’t build locally
it asks me about something called “Gradle” , I installed it and included it in the path
still also asks me about - my client needs the application as soon as possible .
That looks fine now!
Run cordova requirements
to get more information on this. Installing Android Studio is mostly the easiest way to fix this.[quote=“frodoe7, post:12, topic:98844, full:true”]
and here’s when I try to build online
[/quote]
That is a new, different error, isn’t it? How long does it take to appear?
Can you try to start a new project with ionic start blank blank
and build that in the cloud like you do with your app? Same error?
After many tries , it built successfully for Android , Thanks
but in case building for IOS - it output these errors
The following build commands failed:
Check dependencies
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/package/workspace/apps-db99b4e2-6/cordova/platforms/ios/cordova/build-debug.xcconfig,-workspace,Instagram Mamo.xcworkspace,-scheme,Instagram Mamo,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,Instagram Mamo.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/package/workspace/apps-db99b4e2-6/cordova/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/package/workspace/apps-db99b4e2-6/cordova/platforms/ios/build/sharedpch
What fixed it?[quote=“frodoe7, post:14, topic:98844”]
but in case building for IOS - it output these errors
[/quote]
Create a new topic for that one please.
I just created a new project and replaced the src folder and installed the plugins again
as I remember
this made a problem : ionic package build android --profile=profileName
but this worked well : ionic package build android --profile profileName
Okey - I’ll post a new topic
Thank you - bumping NPM down to npm@4 did it