0

I need to view and edit the shared preferences for my app. When I try to open the Android Device Monitor from my Android Studios (Tools > Android > Android Device Monitor) it gives the following error:

enter image description here

When I open that log file, the given error is as follows:

https://drive.google.com/file/d/0B43t-lgy1BmXWjMtTjE3ZGI5TlE/view?usp=sharing

I found a similar post where the suggested fix was to update the Java SDK. However my Java SDK is already updated:

enter image description here

I also thought maybe the device monitor was not installed, but it is. What is going on and how do I get my ADM back?

codeinprogress
  • 3,193
  • 7
  • 43
  • 69

2 Answers2

0

I had the same problem, that is Android Monitor could't find Java8. Installing with brew didn't help, but installing from Oracle dmg solved the issue.

Zoli
  • 1
0

I had the same problem, following solution worked for me I hope it also helps you, => uninstalling the JDK and then again downloaded the JDK 8 from Oracle. install JDK 8 according to instruction. To make sure JDK is installed successfully write following command in terminal: /usr/libexec/java_home -v 1.7

then set a path of JDK in Android Studio by doing the following Go to file -> project Structure -> JDK path.

Akshay
  • 111
  • 1
  • 12