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 :)
source share