Finding Android SDK on Mac and adding to PATH

前端 未结 7 2085
离开以前
离开以前 2020-12-07 07:28

I have installed Android Studio on my MacBook Air (OS Version 10.11 El Capitan) and have successfully written a small \"hello, world\" app and installed on device (Nexus 7)

相关标签:
7条回答
  • 2020-12-07 08:30

    The default path of Android SDK is /Users/<username>/Library/Android/sdk, you can refer to this post.

    add this to your .bash_profile to add the environment variable

    export PATH="/Users/<username>/Library/Android/sdk/tools:/Users/<username>/Library/Android/sdk/build-tools:${PATH}"
    

    Then save the file.

    load it

    source ./.bash_profile 
    
    0 讨论(0)
提交回复
热议问题