@iamdavidheartmercado wrote:
Begginer here.
I'm trying to test android by running this command - ionic run android
but im having this error, any help appreciated..Native thread-sleep not available.
This will result in much slower performance, but it will still work.
You should re-install spawn-sync or upgrade to the lastest version of node if possible.
Check /usr/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cross-spawn/node_modules/spawn-sync/error.log for more details
Running command: /home/davidheart/todo/hooks/after_prepare/010_add_platform_class.js /home/davidheart/todo
add to body class: platform-android
Running command: /home/davidheart/todo/platforms/android/cordova/run
ERROR: Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually.
Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.
ERROR running one or more of the platforms: Error: /home/davidheart/todo/platforms/android/cordova/run: Command failed with exit code 2
You may not have the required environment or OS to run this project
Posts: 2
Participants: 2