Hi Can someone please help me, I have been trying to figure out what the issue is all day. IOS building is working fine, but when I try to build or run android with Ionic through terminal I receive these errors below:
sudo ionic build android
Updated the hooks directory to have execute permissions
Running command: /Users/anthonysinclair/nodesass/hooks/before_prepare/01_jshint.js /Users/anthonysinclair/nodesass
File www/js/app.js has no errors.
File www/js/config.js has no errors.
File www/js/controllers.js has no errors.
File www/js/directives.js has no errors.
File www/js/factories.js has no errors.
File www/js/filters.js has no errors.
File www/js/services.js has no errors.
File www/js/templates.js has no errors.
Running command: /Users/anthonysinclair/nodesass/hooks/after_prepare/010_add_platform_class.js /Users/anthonysinclair/nodesass
add to body class: platform-android
Running command: /Users/anthonysinclair/nodesass/hooks/after_prepare/020_remove_sass_from_platforms.js /Users/anthonysinclair/nodesass
Running command: /Users/anthonysinclair/nodesass/platforms/android/cordova/build
Running: /Users/anthonysinclair/nodesass/platforms/android/gradlew cdvBuildDebug -b /Users/anthonysinclair/nodesass/platforms/android/build.gradle -Dorg.gradle.daemon=true
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:CordovaLib:compileLint’.
Unable to create lint output directory.
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Total time: 1.905 secs
Error code 1 for command: /Users/anthonysinclair/nodesass/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/anthonysinclair/nodesass/platforms/android/build.gradle,-Dorg.gradle.daemon=true
ERROR building one of the platforms: Error: /Users/anthonysinclair/nodesass/platforms/android/cordova/build: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: /Users/anthonysinclair/nodesass/platforms/android/cordova/build: Command failed with exit code 1
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
I am using Mac Yosemite, IOS Build works fine its just android.
I use Android Studio. and have set these in the .bash_profile
Been trying to get it to work all day