MAC中設定android adb環境變數

來源:互聯網
上載者:User

標籤:android   style   color   io   ar   for   sp   div   on   


1.找到android sdk的本地路徑,

  adb命令在platform-tool下面,記為XXXX

  我的路徑是(/Applications/eclipse/android-sdk-mac_x86/platform-tools)

2.開啟終端輸入

touch .bash_profile   

open -e .bash_profile  點斷行符號

3.添加路徑
.bash_profile開啟了,我們在這裡添加路徑,

如果開啟的文檔裡面已經有內容,我們只要之後添加;XXXX(注意前面一定要用分號隔開),

如果是一個空白文檔的話,我們就輸入一下內容

export PATH=${PATH}:XXXX

儲存,關掉這個文檔,

4.終端輸入命令  source .bash_profile
5.終端輸入命令 adb點斷行符號,如果未顯示command not found,說明此命令有效,環境便亮設定完成。

MAC中設定android adb環境變數

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.