android - Failed to find environment variable ANDROID_HOME while working with cordova ubuntu -


i new in hybrid app development.i have been assigned task develop android & ios app using cordova apache.

as work on lamp environment, started installing software same. software have installed cordova npm android studio apache ant phonegap

but after installing , following instructions given on internet.i not able prepare build testing purpose.

below error facing/getting when running command sudo cordova requirements

requirements check results android: java jdk: installed 1.8.0 android sdk: not installed failed find 'android_home' environment variable. try setting setting manually. failed find 'android' command in 'path'. try update 'path' include path valid sdk directory. android target: not installed android sdk not found. make sure installed. if not @ default location, set android_home environment variable. gradle: not installed not find gradle wrapper within android sdk. not find android sdk directory. might need install android sdk or set 'android_home' env variable. error: of requirements check failed

note:i have set environment variable in .bashrc file ,but still facing issue .

please help!

in /home/user/.bashrc must set android_home , path this:

export android_home=/home/user/android/sdk/ 

and path this:

export path=/home/user/android/sdk/tools/:$path 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -