Hi, I am new in ionic and need some help. I am trying to build an app exported from ionic-creator.
after exported, i entered to de add app and ran
$ sudo ionic setup sass
i got some warning:
npmnpm WARN package.json fixedincomecalculator@1.1.1 No README data
npm WARN package.json fixedincomecalculator@1.1.1 No license field.
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0
gulp@3.9.0 node_modules/gulp
├── interpret@0.6.6
├── pretty-hrtime@1.0.1
├── deprecated@0.0.1
├── archy@1.0.0
├── minimist@1.2.0
├── semver@4.3.6
├── tildify@1.1.2 (os-homedir@1.0.1)
├── vinyl-fs@0.3.14 (graceful-fs@3.0.8, strip-bom@1.0.0, vinyl@0.4.6, defaults@1.0.3, mkdirp@0.5.1, through2@0.6.5, glob-watcher@0.0.6, glob-stream@3.1.18)
├── liftoff@2.2.0 (extend@2.0.1, rechoir@0.6.2, flagged-respawn@0.3.1, resolve@1.1.7, findup-sync@0.3.0)
├── v8flags@2.0.11 (user-home@1.1.1)
├── orchestrator@0.3.7 (stream-consume@0.1.0, sequencify@0.0.7, end-of-stream@0.1.5)
├── chalk@1.1.1 (escape-string-regexp@1.0.4, ansi-styles@2.1.0, supports-color@2.0.0, has-ansi@2.0.0, strip-ansi@3.0.0)
└── gulp-util@3.0.7 (array-differ@1.0.0, array-uniq@1.0.2, lodash.reevaluate@3.0.0, lodash.reinterpolate@3.0.0, fancy-log@1.1.0, beeper@1.1.0, lodash._reescape@3.0.0, object-assign@3.0.0, replace-ext@0.0.1, vinyl@0.5.3, has-gulplog@0.1.0, gulplog@1.0.0, lodash.template@3.6.2, through2@2.0.0, multipipe@0.1.2, dateformat@1.0.12)
Successful npm install
Updated /Users/DeveloperPrime/Dev/IonicProjects/FixedIncomeCalculator/www/index.html references to sass compiled css
Ionic project ready to use Sass!
* Customize the app using scss/ionic.app.scss
* Run ionic serve to start a local dev server and watch/compile Sass to CSS
[15:33:38] Using gulpfile ~/Dev/IonicProjects/FixedIncomeCalculator/gulpfile.js
[15:33:38] Starting 'sass'...
[15:33:39] Finished 'sass' after 1.07 s
Successful sass build
Ionic setup complete
After that tried to build but got the following error
$sudo ionic build android
FAILURE: Build failed with an exception.
-
What went wrong:
Execution failed for task ':processDebugResources'.com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/DeveloperPrime/Library/Android/sdk/build-tools/23.0.2/aapt'' finished with non-zero exit value 1
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: 3.688 secs
ERROR building one of the platforms: Error code 1 for command: /Users/DeveloperPrime/Dev/IonicProjects/FixedIncomeCalculator/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/DeveloperPrime/Dev/IonicProjects/FixedIncomeCalculator/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
You may not have the required environment or OS to build this project
Error: Error code 1 for command: /Users/DeveloperPrime/Dev/IonicProjects/FixedIncomeCalculator/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/DeveloperPrime/Dev/IonicProjects/FixedIncomeCalculator/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true