Finding Android SDK on Mac and adding to PATH

前端 未结 7 2083
离开以前
离开以前 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//Library/Android/sdk, you can refer to this post.

    add this to your .bash_profile to add the environment variable

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

    Then save the file.

    load it

    source ./.bash_profile 
    

提交回复
热议问题