Score:0

Open JDK error when I Install Android Studio Arctic Fox on Xubuntu?

cn flag

I am trying to install Android Studio Arctic Fox on my Xubuntu 20.04 using the official guide from here : https://developer.android.com/studio/install#64bit-libs

I downloaded the .zip file and unzip it into the /opt/ directory but the problem is when I go to the bin folder of android-stuido and open the terminal and run the commnad ./studio.sh to install Android Studio I get this error in the terminal:

OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. Error occurred during initialization of VM Multiple garbage collectors selected

I got to say that I used to have Android Studio version 4.1.3 and I removed it including every folder related to it before installing the newer version. also my OpenJDK version is 11.0.11

Score:0
cn flag

It's simple. Just type this command and hit enter.

If you want to install jdk 8, then type

sudo apt-get install openjdk-8-jdk

If you want to install only jre, then

sudo apt-get install openjdk-8-jre

After that, register the jdk path with JAVA_HOME variable in windows. For linux, you can do it in multiple ways which can be easily learned from internet.

Then open Android studio and see of it's solved.

mohamed rabiaa avatar
cn flag
Do you have Android Studio Arctic Fox version installed on your device?? actually it needs OpenJdk 11 to run
Dev4Life avatar
cn flag
I am using windows. But I installed studio on Pop Os directly from its app store..so it was running without any problem.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.