Eclipse - 使用 Android 7 清空 Logcat
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39351106/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse - Empty Logcat with Android 7
提问by Springrbua
I recently updated my Nexus 9 Tablet to Android 7 Nougat.
Since then the Logcat view in Eclipse stoped displaying Logcat messages, the view just stays empty.
Also the devices target is shown as "Unknown".
If I instead start Logcat outside Eclipse (AndroidSDK->tools->ddms) it displays all messages. However, then the "Application" Column stays empty.
There are allready some (older) questions on this topic here on SO, but none of the solutions here worked for me.
What i tryed:
我最近将我的 Nexus 9 平板电脑更新为 Android 7 Nougat。
从那时起 Eclipse 中的 Logcat 视图停止显示 Logcat 消息,该视图只是保持空白。
此外,设备目标显示为“未知”。如果我在 Eclipse (AndroidSDK->tools->ddms) 之外启动 Logcat,它会显示所有消息。但是,然后“应用程序”列保持为空。
在 SO 上已经有一些关于这个主题的(较旧的)问题,但这里没有一个解决方案对我有用。
我尝试了什么:
- Use another USB Port
- Focus the device in the DDMS perspective
- Restart Eclipse
- Reboot the device + pc
- abd kill-server
- disable and re-enabled USB Debuging on the device
- Reset the USB-Debuging authorization and confirm the RSA fingerprint again
- Switch USB-Mode to "MTP"
- 使用另一个 USB 端口
- 从 DDMS 角度关注设备
- 重启 Eclipse
- 重启设备+电脑
- abd 杀死服务器
- 在设备上禁用并重新启用 USB 调试
- 重置USB-Debuging授权并再次确认RSA指纹
- 将 USB 模式切换为“MTP”
Every installed package from the Android SDK is up to date and i use latest Eclipse+ADT Plugin.
Also everything works fine with my Galaxy S5 Mini (Android 5.1.1).
I know, that the ADT-Plugin is deprecated and we should use Android Studio.
However I still preffer to use Eclipse as long as possible, so I am looking for a solution for this problem.
So does anyone know how to solve this issue?
来自 Android SDK 的每个安装包都是最新的,我使用最新的 Eclipse+ADT 插件。
此外,我的 Galaxy S5 Mini(Android 5.1.1)一切正常。
我知道,ADT-Plugin 已被弃用,我们应该使用 Android Studio。
但是,我仍然希望尽可能长时间地使用 Eclipse,因此我正在寻找解决此问题的方法。
那么有谁知道如何解决这个问题?
采纳答案by KBKai
can use "Android Device Monitor" Application,
可以使用“Android Device Monitor”应用程序,
This application in the sdk-tools package.
此应用程序在 sdk-tools 包中。
Launch From the command line,
从命令行启动,
cd to the "sdk-tools folder/tools/" directory,
cd 到“sdk-tools 文件夹/tools/”目录,
enter the following command : monitor.
输入以下命令:monitor。
or
或者
windows environment,
windows环境,
open the directory "sdk-tools folder/tools/",
打开目录“sdk-tools文件夹/工具/”,
and double click monitor.bat.
并双击monitor.bat。
detail -> Google User Guide
详细信息 ->谷歌用户指南
回答by Arise
I tried with this custom build and it works for me. Now I can see my logcat in Eclipse again.
我尝试了这个自定义构建,它对我有用。现在我可以再次在 Eclipse 中看到我的 logcat。
https://github.com/khaledev/ADT/releases
https://github.com/khaledev/ADT/releases
Download the zip file then in Eclipse menu Help > Install New Software... > Add > Archive... Just pick the downloaded zip and do the rest of the install process.
下载 zip 文件,然后在 Eclipse 菜单 Help > Install New Software... > Add > Archive... 只需选择下载的 zip 并执行其余的安装过程。
回答by David
I had the same problem. Eventually, I found out that the "Eclipse IDE for Android Developers" was out of date. Updating this feature fixed the problem. Procedure:
我有同样的问题。最终,我发现“Eclipse IDE for Android Developers”已经过时了。更新此功能修复了问题。程序:
Open Help -> About Eclipse -> Installation Details
Select "Installed Software" tab
Select "Eclipse IDE for Android Developers"
Click "Update" in the bottom.
打开帮助 -> 关于 Eclipse -> 安装详情
选择“已安装的软件”选项卡
选择“面向 Android 开发者的 Eclipse IDE”
点击底部的“更新”。