简体   繁体   English

无法打开Android设备监视器-重新安装?

[英]Can't Open Android Device Monitor - Reinstall?

Like others, when I open Android Device Monitor I get the error: 像其他人一样,当我打开Android Device Monitor时出现错误:

"An error has occurred. See the log file C:\\Users\\Me.android\\monitor-workspace.metadata.log." “发生了错误。请参阅日志文件C:\\ Users \\ Me.android \\ monitor-workspace.metadata.log。”

When I looked in the log file, the error was: 当我查看日志文件时,错误是:

!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
    at com.android.ddmuilib.logcat.LogCatPanel.updateUnreadCount(LogCatPanel.java:1212)

I tried some quick solutions others found: 我尝试了一些其他人发现的快速解决方案:

  • Running as Administrator (I'm on Windows) 以管理员身份运行(我在Windows上)

  • echo $JAVA_HOME outputs a location (and I think it's there), but need to check this out more echo $ JAVA_HOME输出一个位置(我认为它在那里),但是需要更多地检查

This worked until just yesterday, so I am worried I may have accidentally uninstalled or deleted something (just did some clean-up). 该操作一直持续到昨天,所以我担心我可能不小心卸载或删除了某些内容(只是做了一些清理)。

How can I reinstall Android Device Monitor? 如何重新安装Android设备监视器?

I opened SDK Manager and deleted the most recent 3 tools, then I reinstalled them. 我打开SDK Manager并删除了最新的3种工具,然后重新安装了它们。 That seems to have fixed it. 这似乎已经解决了。 It did take a while, so it might be worth trying only uninstalling the most recent set of tools. 确实花了一段时间,所以值得尝试仅卸载最新的工具集。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM