標籤: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安裝、配置和使用