Android Studio error when clicking on Android device monitor

后端 未结 7 959
庸人自扰
庸人自扰 2021-02-04 08:51

I am having this error in android studio whenever i click on Android Device Monitor:

---------------------------
Monitor
---------------------------
An error has         


        
7条回答
  •  独厮守ぢ
    2021-02-04 09:24

    I am adding this answer because I think this will be helpful to future visitors.

    I ran into the same problem, and managed to solve it. However, My solution is different from the one already mentioned.

    First of all, the monitor.ini file is in C:\Users\\AppData\Local\Android\sdk\tools\lib\monitor-x86_64 and config.ini file is in ./configuration folder

    When I checked log file it said (at the very end of file) :

    java.io.IOException: The folder "C:\Users\.android\monitor-workspace.metadata" is read-only.

    So I ran the monitor.exe as Administrator and it worked fine.

    Next I ran Android Studio as Admin and the ADM button worked fine.

提交回复
热议问题