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

前端 未结 12 1480
庸人自扰
庸人自扰 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条回答
  •  猫巷女王i
    2020-12-23 19:50

    I had this problem when running sudo ionic run android as root as these environmental variables were not persisted. Fixed by running sudo -E ionic run android.

提交回复
热议问题