'Setting Android Home path in ionic framework
I want to run my ionic project in android device.So I ran following commands
- Ionic add ionic-platform-web-client
- ionic plugin add phonegap-plugin push
- ionic io init
- ionic platform add android
All the above commands were successfully executed.When I tried to run following command:
ionic run android
It gives me error:
'ANDROID_HOME' environment variable is set to non-existent path.
Try update it manually to point to valid SDK directory.
You may not have the required environment or OS to run this project.
How do i fix it now?
Solution 1:[1]
Try ionic build android
before android run android
Solution 2:[2]
Just set you windows environment for the correct android home path
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | VĂctor |
Solution 2 | Erwin Kurnia |