@naumanahmad17 wrote:
cordova build android
Running command - failed!
[ERROR] An error occurred while running cordova build android (exit code 1):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.
but ANDROID_HOME is set
echo $ANDROID_HOME
/home/nauman/Android/Sdk // it set sdk location//path variable is set to the following
echo $PATH | tr -s ‘:’ ‘\n’
/home/nauman/.composer/vendor/bin
/home/nauman/anaconda3/bin
/home/nauman/.composer/vendor/bin
/home/nauman/anaconda3/bin
/home/nauman/.composer/vendor/bin
/home/nauman/anaconda3/bin
/home/nauman/.composer/vendor/bin
/home/nauman/anaconda3/bin
/home/nauman/Android/Sdk/tools
/home/nauman/.composer/vendor/bin
/home/nauman/anaconda3/bin
/home/nauman/.composer/vendor/bin
/home/nauman/anaconda3/bin
/home/nauman/.composer/vendor/bin
/home/nauman/anaconda3/bin
/home/nauman/.composer/vendor/bin
/home/nauman/anaconda3/bin
/home/nauman/.composer/vendor/bin
/home/nauman/anaconda3/bin
/home/nauman/.composer/vendor/bin
/home/nauman/anaconda3/bin
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/usr/games
/usr/local/games
/usr/lib/jvm/java-8-oracle/bin
/usr/lib/jvm/java-8-oracle/db/bin
/usr/lib/jvm/java-8-oracle/jre/bin
/home/nauman/Android/Sdk/tools
/home/nauman/Android/Sdk/platform-tools
/home/nauman/Android/Sdk/bin
/home/nauman/Android/Sdk/tools/bin
/home/nauman/Android/Sdk/tools
/home/nauman/Android/Sdk/platform-tools
/home/nauman/Android/Sdk/tools/bin
/home/nauman/Android/Sdk/tools
/home/nauman/Android/Sdk/platform-tools
Posts: 1
Participants: 1