Don't see Android SDK and AVD Manager when execute android tool command

后端 未结 11 636
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-29 08:49

I\'m developing android on Mac OS.

In the first time, I use android tool command (/tools/android) to launch Android SDK and

11条回答
  •  滥情空心
    2020-12-29 09:26

    You can also add /tools to your PATH if you use it often. Open your ~/.bashrc file and add this line:

    #  is path to your SDK, e.g. /Users/akarienta/Library/Android/sdk
    export PATH=${PATH}:/tools  
    

    Then just reload the file by source ~/.bashrc or restart the terminal. Since now you can use commands like these (in whatever location you are):

    # opens Android SDK Manager
    $ android
    # opens Android AVD Manager
    $ android avd
    

提交回复
热议问题