Ubuntu下Android Studio安裝、配置和使用

來源:互聯網
上載者:User

標籤:png   update   pad   try   back   add   eve   entry   系統   

Ubuntu下使用Android Studio開發應用程式,首先需要安裝該IDE。

情況1:Ubuntu下安裝Android Studio

開啟Terminal,執行下述指令:

sudo apt-add-repository ppa:paolorotolo/android-studiosudo apt-get updatesudo apt-get install android-studio

在執行步驟1時,James的情況是:

讓使用者選擇執行:Enter(繼續執行)或者Ctrl+C(終止執行)

等到按下Enter後,Terminal像失去指令,一直停留在上述結果處。若出現上述情況,可選擇終止執行操作,並再次執行上述指令即可。

情況2:在案頭為Android Studio添加捷徑

進入指定系統檔案目錄:

cd /usr/share/applications/

查看是否有和Android Studio對應的案頭檔案:android-studio.desktop。

若存在,則開啟並編輯;若不存在,則建立該檔案並編輯。

sudo gedit /usr/share/applications/adroid-studio.desktop

如下所述:

[Desktop Entry]Type=ApplicationTerminal=falseName=Android StudioExec=/opt/android-studio/bin/studio.shComment=Integrated Android developer tools for development and debugging.Icon=/opt/android-studio/bin/studio.pngCategories=GNOME;GTK;Development;IDE;

其中Exec和Icon對應的路徑應和安裝目錄路徑相對應。

儲存並關閉檔案,運行下述命令:

sudo chmod +x /usr/share/applications/android-studio.desktop

繼續執行下述指令,以視窗的形式開啟指定路徑目錄:

sudo nautilus /usr/share/applications
在上述視窗中,找到Android Studio捷徑,將檔案拖動到案頭即可。

Ubuntu下Android Studio安裝、配置和使用

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.