Failed to find 'ANDROID_HOME' environment variable
News
Magento Tutorial
Wordpress
vTiger CRM
vTiger CRM Customer Portal
Premium Plugin
Git
Laravel
Mysql
Ionic Framework
Android
February 26, 2016
i have this error when i am trying to build
[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.]
Solution
You have permission errors. My guess is that you tried to run the script as root rather than sudo. When running the script you have to run it as your user account using sudo.
change owner permission all files & folder to your current login user .
- Your android sdk
- Your ionic or cordova project files
dont run as admin or run using sudo