Android device monitor does not open in Ubuntu 17.10

When I open the monitor of Android devices, I get the following error:

An error has occurred. See the log file /home/omkar/Android/Sdk/tools/lib/monitor-x86_64/configuration/1509852867579.log. 

I already tried:

  • Running Android studio with sudo / root privileges.
  • Reinstalling Android SDK.

My configuration:

  • Android Studio 3.0
  • Android SDK API version 27.
  • Ubuntu 17.10 Gnome

I am attaching a pastebin link for magazines in the question. Logs Link: https://pastebin.com/cje8fkgY

+5
source share
2 answers

While Android Studio brings with it its own version of Java, the (now mostly obsolete) Android Device Monitor (ADM) depends on the version of Java installed on your computer. From other bug reports on the Internet, it seems that ADM needs Java 8 ( here ). It also means that our machines are different from each other. As I noted in the comment above, I am also on Ubuntu 17.10, Android Sdk 27 ​​and Android Studio 3.0, however, I have Java 8 installed and ADM works fine.

Therefore, I suggest you add Java 8 to your computer and make it a standard version. On Ubuntu, you can do it like this:

 sudo add-apt-repository ppa:webupd8team/java // only necessary if repository not yet added sudo apt-get update // only necessary if repository not yet added sudo apt-get install oracle-java8-installer sudo apt-get install oracle-java8-set-default 
+5
source

You need to install the default version of Java. To do this, follow these steps:

Run:

 sudo update-java-alternatives --list 

to list all Java installations on the computer by name and directory, and then run:

 sudo update-java-alternatives --set [JDK/JRE name eg java-1.8.0-openjdk-amd64] 

This worked great for me.

0
source

Source: https://habr.com/ru/post/1273124/


All Articles