Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49216

Unable to build android app using cordova build android

$
0
0

@naumanahmad17 wrote:

cordova build android
:heavy_multiplication_x: 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

Read full topic


Viewing all articles
Browse latest Browse all 49216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>