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
Search In Blog
Want to donate?
Recent Posts: My Android Solutions
If you ever wondered how to read and parse a simple JSON file stored in the assets directory of your Android project, here is a way to do it.
In this tutorial I will create a simple Sectioned RecyclerView that will show 2 sections and a few items in each section and how to move an item from one section to another. Note: For RecyclerView I used AndroidX imports and not android.support.v7.widget.RecyclerView! Setup We need to import the recycler view from AndroidX. The build.gradle…
Recently, I had to add a perfect square CardView and I wanted to achieve this without hardcoding its width and height. I happily discovered the power of ConstraintLayout and this is how I managed to create a perfect square which should work on every dimension. In my project I created a RecyclerView with 2 columns,…