Set ANDROID_HOME environment variable in mac

后端 未结 17 832
梦谈多话
梦谈多话 2020-12-04 07:36

I am new in developing native app using Salesforce SDK. I tried to create android project from command line using forcedroid tool but there is problem in setting environment

17条回答
  •  半阙折子戏
    2020-12-04 07:57

    Open the terminal and type :

    export ANDROID_HOME=/Applications/ADT/sdk
    

    Add this to the PATH environment variable

    export PATH=$PATH:$ANDROID_HOME/platform-tools
    

    If the terminal doesn't locate the added path(s) from the .bash_profile, please run this command

    source ~/.bash_profile

    Hope it works to you!

提交回复
热议问题