I am trying to build an ion project. I set up the environment for ionic and android in ubuntu. But I donβt know why the following error is displayed on the terminal ...
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.
I installed android home as below ...
userPC:/codes/myApp$ export ANDROID_HOME=/opt/android-sdk-linux userPC:/codes/myApp$ export ANDROID_PLATFORM_TOOLS=/opt/android-sdk-linux/platform_tools userPC:/codes/myApp$ export ANDROID_TOOLS=/opt/android-sdk-linux/tools userPC:/codes/myApp$ PATH=$PATH:$ANDROID_HOME:$ANDROID_TOOLS:$ANDROID_PLATFORM_TOOLS
my android-sdk-linux is located in / opt / itself. From the terminal, I can run the android command. So, I believe that the environment variable is not the main problem. While I am trying to create an ionic project, it shows Failed to find 'ANDROID_HOME' environment variable. I am using the Android SDK Build Tools 22 and the latest ion version.
Can someone tell me how can I solve this problem? I searched a lot, but wherever I found to configure the android sdk path and environment correctly. But I already installed all this. Thank!
android environment-variables cordova ionic-framework
user3755008 Jan 31 '16 at 4:38 2016-01-31 04:38
source share