Android Studio - Android Device Monitor - Empty View

半腔热情 提交于 2019-12-05 14:05:02

问题


I am trying to use the Android Device Monitor within Android Studio, but somehow I managed to remove all views.

I have tried resetting the perspectives, Window->Show View->(Any View), and even re-installing Android Studio but nothing shows up.

Does anyone know how to reset the Device Monitor back to it's default views? (With the devices on the left, and the heap/threads/allocation views on the right.)

Thanks for your help!


回答1:


I've experienced this same problem by using Window -> Reset Perspective. One should expect this to fix this issue, not break it. Go figure.

In any case, the DDMS workspace preferences are stored in %USERPROFILE%\.android\monitor-workspace (e.g. C:\Users\my_user\.android\monitor-workspace).

Just delete that folder and you're good to go.




回答2:


Note that you'll need to enable 'show hidden files' in the finder if you are on a mac. Then, the workspace directory is in users/your_username/.android/monitor-workspace.

See http://ianlunn.co.uk/articles/quickly-showhide-hidden-files-mac-os-x-mavericks/ for how to show hidden files.




回答3:


On Windows:

  1. Go to C:\users\my_user\.android\monitor-workspace)
  2. Close android device monitor
  3. Delete all files/folders inside of monitor-workspace folder
  4. Run android device monitor again

Where "my_user" is your user folder.




回答4:


That screenshot looks like you are running Windows. So, you could go to C:\Users\user3106174\ and delete the directory named .android (or something similar).



来源:https://stackoverflow.com/questions/24723585/android-studio-android-device-monitor-empty-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!