MAC - I cannot open Android Device Monitor on Mac

I opened it as an administrator, and I do not want to install anything extra. When I tried to open Android Device Monitor through Android Studio: Tools> Android> Android Device Monitor. It always shows the following screenshot: Screenshot that shows β€œAn error has occurred” I found solutions for Windows, but I did not find solutions for mac.

One part from the magazine:

!ENTRY org.eclipse.osgi 4 0 2015-12-02 22:52:40.714 !MESSAGE Bundle reference:file: org.apache.lucene.core_2.9.1.v201101211721.jar@4 not found. 

There are many similar lines that show "something not found."

So what is missing? How to install the exact missing parts? Thank you (I do not have enough space to install everything from android studio.)

+2
source share
4 answers

First of all, update the Android SDK Tools from the SDK Manager

  • Open a terminal window
  • Go to your SDK
  • Find the "tools" folder
  • cd into it
  • run: sudo./monitor
  • Enter your password

Hope this can solve your problem.

+5
source

The JPCS solution worked for me; install Java 8 and then the Android device monitor will work:

Install Homebrew First

 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 

Then upgrade and install Java 8

 $ brew update $ brew cask install java 
+5
source

I followed a few steps, and after many hours of struggle, everything changed, and I got success to launch the device on Mac OS x.

What I've done?

  • I installed Homebrew and used some of its commands to install java, because it is so easy to download and install java in the terminal using homebrew. Its a very good tool for automatically handling java problems. but here you need to keep in mind. below β†’
  • when you install java using Homebrew, please make sure you are using the same version of java and jre using android studio.in in my case my android studio is using jre_1.8.0, so java8 is installed.

Their are some steps to follow. just insert the terminal to download Homebrew into your system.

1.) / Usr / bin / ruby ​​-e "$ (curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install )"

2.) $ brew tap caskroom / versions $ brew cask install java8.

this will automatically download and install java 8 on your Mac OSx.i, installed java 8 for my case, java 9 is also available, but I used java8. because I added jre 8 to my compilation with android studio.so installation, required both in one version and in aviod conflict.

3.), so after installing it, just restart your android studio and start the moniter device from android studio.now, you, Android studio, will be able to start the device without any conflicts.

Thanks, happy coding :)

+1
source

I had the same problem! Since I am not comfortable using the terminal, I just tried updating to the very latest Java JDK and it seems to fix the problem.

0
source

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


All Articles