安装 android studio 并在终端中运行所有命令并保存文本编辑器“.desktop”文件后,终端显示以下错误:
~/Downloads$ cd ~/Downloads
~/Downloads$ sudo -i
[sudo] password for arpit
~# mv android-studio /opt
mv: cannot stat 'android-studio': No such file or directory
~# gedit android-studio.desktop
desktop-file-install android-studio.desktop
~# desktop-file-install android-studio.desktop
Error on file "android-studio.desktop": Key file does not start with a group
~# desktop-file-install android-studio.desktop
Error on file "android-studio.desktop": Key file does not start with a group
~# ^C
~#
答案1
Ubuntu 官方安装Android Studio的方法是这样的:
$ sudo apt install ubuntu-make
$ sudo umake android