Set ANDROID_HOME environment variable in mac

后端 未结 17 836
梦谈多话
梦谈多话 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:15

    The above answer is correct. Works really well. There is also quick way to do this.

    1. Open command prompt
    2. Type - echo export "ANDROID_HOME=/Users/yourName/Library/Android/sdk" >> ~/.bash_profile

      Thats's it.

    3. Close your terminal.

    4. Open it again.

    5. Type - echo $ANDROID_HOME to check if the home is set.

提交回复
热议问题