Set ANDROID_HOME environment variable in mac

后端 未结 17 812
梦谈多话
梦谈多话 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 08:18

    Here are the steps:

    1. Open Terminal
    2. Type touch .bash_profile and press Enter
    3. Now Type open .bash_profile and again press Enter
    4. A textEdit file will be opened
    5. Now type export ANDROID_HOME="Users/Your_User_Name/Library/Android/sdk"
    6. Then in next line type export PATH="${PATH}:/$ANDROID_HOME/platform-tools:/$ANDROID_HOME/tools:/$ANDROID_HOME/tools/bin"
    7. Now save this .bash_profile file
    8. Close the Terminal

    To verify if Path is set successfully open terminal again and type adb if adb version and other details are displayed that means path is set properly.

提交回复
热议问题