Ubuntu 命令行安装android studio

时间:2021-04-25 15:25:23

安装

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

创建桌面快捷方式

sudo vim /usr/share/applications/Studio.desktop  

输入以下内容

    [Desktop Entry]  
Name = Studio
comment= android studio
Exec=/home/ryan/tools/android-studio/bin/studio.sh
Icon=/home/ryan/tools/android-studio/bin/studio.png
Terminal=false
Type=Application

打开该文件夹

nautilus /usr/share/applications/  

将里面的android studio 拖到左侧快捷栏