Ionic android build Error - Failed to find 'ANDROID_HOME' environment variable

前端 未结 12 1457
庸人自扰
庸人自扰 2020-12-23 19:41

I am trying to build android for ionic in linux but its showing me an error like this

     [Error: Failed to find \'ANDROID_HOME\' environment variable. 
           


        
12条回答
  •  一整个雨季
    2020-12-23 20:09

    To add ANDROID_HOME value permanently,

    gedit ~/.bashrc
    

    and add the following lines

    export ANDROID_HOME=/root/Android/Sdk
    PATH=$PATH:$ANDROID_HOME/tools
    

    Save the file and you need not update ANDROID_HOME value everytime.

提交回复
热议问题