android-studio
android-studio copied to clipboard
Unable to launch
Hi Paolo Rotolo,
I'm on a fresh install of Ubuntu 15.04. I installed via your repo Android Studio but the program doesn't appear anywhere. Even via a terminal my PC didn't found the bin or something related to.
Thanks.
Hi, thanks for your report.
Please, open a terminal and paste this command:
/opt/android-studio/bin/studio.sh
Can you tell me if it works :)?
I had the same problem on ubuntu 14 , with /opt/android-studio/bin/studio.sh it launched it ... thank you
Are you using Unity or GNOME? Also Ubuntu i386 or amd64?
Unity and amd64
Same problem here: no app appearing in the dash. Ubuntu 15.04 Unity 64 bit
With /opt/android-studio/bin/studio.sh the software is launched.
Could you paste here what's in android-studio.desktop file in /usr/share/applications please?
nano /usr/share/applications/android-studio.desktop
Me too (Ubuntu 15.04 Unity & 64 Bits). Here's the content of .desktop file ->
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Name=Android Studio
Exec=/opt/android-studio/bin/studio.sh
Comment=Integrated Android developer tools for development and debugging.
Icon=androidstudio
Categories=GNOME;GTK;Development;IDE;
I got this error:
Start Failed: Internal error. Please report to https://code.google.com/p/android/issues
java.lang.NoClassDefFoundError: com.intellij.util.lang.ClassPath
at java.lang.Class.initializeClass(libgcj.so.14)
at com.intellij.util.lang.UrlClassLoader.createClassPath(UrlClassLoader.java:179)
at com.intellij.util.lang.UrlClassLoader.
Also, an UI exception occurred on attempt to show above message:
java.lang.ExceptionInInitializerError
at java.lang.Class.initializeClass(libgcj.so.14)
at com.intellij.util.containers.ConcurrentIntObjectHashMap.getUnsafe(ConcurrentIntObjectHashMap.java:2787)
at com.intellij.util.containers.ConcurrentIntObjectHashMap.
Please assist.
Nevermind, I fixed it by installing jdk 7
I solved this using 'sudo desktop-file-install android-studio.desktop' on /usr/share/applications
I experimented this issue on Linux Mint 17.1. @loide's solution works like a charm, thanks!
Awesome guys, I'm going to add the tip in FAQ. :+1:
Same problem appear after installing jdk 8 after android studio. @loide 's solution worked for me ! @PaoloRotolo , I can't see the trick on the FAQ, did you just forgot to update it or am I just missing the info somewhere ?
@loide's suggestion
sudo desktop-file-install /usr/share/applications/android-studio.desktop
works on Ubuntu 14.04 LTS. Thanks a log!
@loide 's solution works on LinuxMint17.3 x64 cinema
I had the same problem and on my second attempt on a new machine I found this to be prequisits: #Install Java8 sudo apt-add-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer
#configure Java8 (in my case I had to select 1) sudo update-alternatives --config java
#this stuff is required to avoid mksdcard error on first run of the studio sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6
#press ctrl+w and search for "MaxPermSize" and remove the line sudo nano /opt/android-studio/bin/studio64.vmoptions sudo nano /opt/android-studio/bin/studio.vmoptions
Then install AS and reboot. Everything should work then.