Recently I had this issue: my Android Device Monitor didn’t open and and an error log file was generated every time I was tring to open it, under Android – sdk – tools – lib – monitor-x86_64 – configuration. Also, I have to mention that it happened on Windows.
I googled it and found different answers but none worked for me, and after some further digging, I found the solution for my case.
Solution (that worked for me)
.android folder was read-only so I had to change this. The file is located in my case under C:\Users\<your_user>. So right-click on the folder – select Properties – uncheck read-only option.
Below there are different other solutions in case the above one doesn’t work for you.
- Close Android Studio and run it again as Administrator;
- Kill or end “monitior.exe” running process using Taskmanager in Windows
- Try to update Android SDK Tools
- Make sure you have JAVA_HOME in your system environment variables