2

在 Eclipse 的 DDMS 视图中,我缺少分配跟踪器第二部分的所有列......

我可以看到一个带有“alloc order”和“alloc size”等的列表,但是点击列表中的任何项目都不会在屏幕的后半部分给我更多信息......

在网上的屏幕截图中,我可以看到它应该告诉我哪个文件甚至行号正在分配内存,而不是我得到 4 或 5 个项目,例如“at Java.lang.Objec ...”以省略号结尾,但无法扩展它列显示整行...

我已经重新启动了几次,并且正在使用最新的工具、ADT 和 SDK ......

有人遇到过这样的问题吗?这使得寻找 OOM 错误变得非常困难......

4

1 回答 1

1

This also happened with me.

The allocation tracker and logcat both had missing columns.

This seems to be happening with IDE with outdated Developer tools.

Make sure you check for updates for the Android Developer tools (https://dl-ssl.google.com/android/eclipse/)

Help > Check for Updates

Current version

21.1.0.v201302060044

After that make sure the tools are updates:

Open Android SDK manager and make sure your SDK tools are up to date.

Window > Android SDK Manager

And make sure the Status columns displays "Installed" and not "Update available" for The Tools.

Current versions are:

  • Android SDK Tools rev. 21.1
  • Android SDK Platform-tools rev. 16.02

EDIT: I'm terribly sorry. It seems I missed the part where you said you already tried the above. These things worked for me and fixed the problem so I was pretty sure this is the solution.

It seems re-installing Eclipse might be the next step. (Which I never had to do)

于 2013-03-08T15:55:47.717 回答