How to install Android Studio on Fedora 24
I'm trying to install Android Studio on Fedora 24, but the jdk doing problems..
When I run studio.sh file (./studio.sh
) it's print this error
[noam@localhost bin]$
[noam@localhost bin]$ ./studio.sh
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=350m; support was removed in 8.0
JDK Required: 'tools.jar' seems to be not in Studio classpath.
Please ensure JAVA_HOME points to JDK rather than JRE.
[noam@localhost bin]$
And this is what java -version
print
[noam@localhost ~]$
[noam@localhost ~]$ java -
openjdk version "1.8.0_101"
OpenJDK Runtime Environment (build 1.8.0_101-b14)
OpenJDK 64-Bit Server VM (build 25.101-b14, mixed mode)
[noam@localhost ~]$
And i've already fixed that before, (I installed some packages, not remember which) and the installation has worked fine, but after the installation was done, so it wrote that it didn't find the jdk, so I have removed all the packages that I installed before (the packages that I installed to fix the tools.jar error message) to start from scratch.
So what do I need to do, to install Android Studio, and make it works in 100%? (without annoying jdk errors)
Thanks in advance.
UPDATE
I've run sudo update-alternatives --config java
and choosee /usr/java/jdk1.8.0_101/jre/bin/java
(which was before java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-1.b14.fc24.x86_64/jre/bin/java)
)
[noam@localhost ~]$
[noam@localhost ~]$ sudo update-alternatives --config java
There are 2 programs which provide 'java'.
Selection Command
-----------------------------------------------
* 1 java-1.8.0-openjdk.x86_64 (/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.101-1.b14.fc24.x86_64/jre/bin/java)
+ 2 /usr/java/jdk1.8.0_101/jre/bin/java
Enter to keep the current selection[+], or type selection number:
[noam@localhost ~]$
So now, the installation starts, but I get this error message
http://i.imgur.com/6dy9NjK.png
"Unable to run msdcard"
At the first time, it's have been appear after a couple of minutes, (after a couple of minutes when it write "downloading android-sdk..." something like that) and in the other times, when I start the installation, it's appears immediately - after a couple of seconds.. (maybe cache, idk)
Anyway - how can I fix that now? (that was my problem also in the last time when I tried to install android studio)