Run Android Studio 2.2 Preview 1 in Ubuntu

If you want to run the last version of Android Studio, you need download it from:

wget https://dl.google.com/dl/android/studio/ide-zips/2.2.0.0/android-studio-ide-145.2878421-linux.zip
unzip android-studio-ide-145.2878421-linux.zip
cd android-studio/bin/
./studio.sh

The following error will appear:

./studio.sh: 137: ./studio.sh: declare: not found
./studio.sh: 141: ./studio.sh: Syntax error: "(" unexpected (expecting "fi")

To fix it, you need replace the first line of studio.sh by #!/bin/bash


Now you can create and icon in your Desktop to execute this application. Create a file calls Studio.desktop in your desktop and put the following lines:

[Desktop Entry]
Type=Application
Icon=/home/user/android-studio/bin/studio.png
Name=AndroidStudio
Comment="Start AndroidStudio"
Exec=/home/user/android-studio/bin/studio.sh
Terminal=false
Categories=Controller;
GenericName[en_US]=
Name[en_US]=AndroidStudio

Enjoy it!

Comments

Post a Comment

Popular posts from this blog

from: can't read /var/mail/ in Python scripts

How to fix Android when developer options are not available for this user

How to install a WhatsApp bot based on Python