如何修复Android Studio Dolphin中的logcat问题?

huangapple go评论56阅读模式
英文:

How to fix the logcat problem in Android studio dolphin?

问题

我喜欢Android Studio Dolphin中的新logcat显示方式..当它工作时。

例如,过去的一个让人非常讨厌的事情是,在许多应用程序崩溃的情况下,logcat显示会被重置,因此您无法看到发生的异常,而有了新的显示方式,通常可以看到异常。

然而,令人讨厌的是随机出现的问题:您从Android Studio运行应用程序,希望在logcat中看到日志。相反,会出现一个studio.deploy错误,类似于

无法删除目录'/data/data/<packageName>/code_cache/.ll/': 没有该文件或目录

然后不会显示更多的日志。

这个问题在几个月前已经报告在https://issuetracker.google.com/issues/243496470?pli=1 ,但似乎尚未解决。在https://issuetracker.google.com/issues/243496470?pli=1 中建议的解决方法,如重新启动Android Studio,似乎有时不起作用,似乎是随机的。

英文:

I like the new logcat display in Android Studio Dolphin .. when it works.

For example, one thing that used to be very annoying in the past was that in many cases of app crashing, the logcat display would be reset, so you couldn't see the exception that happened, whereas with the new display, you can often see the exception.

However, what is annoying is the problem that appears randomly: you run an app from Android Studio and hope to see logs in logcat. Instead, there would be a studio.deploy error, something like

Could not remove dir &#39;/data/data/&lt;packageName&gt;/code_cache/.ll/&#39;: No such file or directory&#39;

and then no further logs would be shown.

This has been reported months ago in https://issuetracker.google.com/issues/243496470?pli=1 , but doesn't appear to have been resolved. Workarounds suggested in https://issuetracker.google.com/issues/243496470?pli=1 , such as restarting Android Studio, appear to not work sometimes, in what seems to be a random way.

答案1

得分: 0

其中一个 https://issuetracker.google.com/issues/243496470?pli=1 中的回答一直有效。

但偶然间我看到在“编辑配置”下,启动选项是“无”。显然,这就是错误的原因,当我切换到“默认活动”时,活动就开始了。

英文:

One of the answers in https://issuetracker.google.com/issues/243496470?pli=1 works consistently.

> But by random I saw that under "Edit Configuration" the Launch Option was "Nothing". Obviously, that was the error and as I switched to "Default Activity" the activity was starting.

huangapple
  • 本文由 发表于 2023年2月10日 12:32:51
  • 转载请务必保留本文链接:https://go.coder-hub.com/75406975.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定