我应该关注 Eclipse 控制台区域中的 DDMS 消息吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8682002/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 17:31:10  来源:igfitidea点击:

Should I be concerned with DDMS message in the console area of Eclipse?

androideclipseadt

提问by Armon-LUStudent

After many hours, I have finally installed the proper version of Eclipse (3.6.2), the SDK (16.0.1), and the ADT Plugin for eclipse. I was able to "plug in" the SDK starter kit with no problem. Then, when I went to install the latest API 4.0.3 (window --> SDK manager ...), in the lower part of the window in the console (it is headed by "DDMS") the following message was displayed:

几个小时后,我终于安装了正确版本的 Eclipse (3.6.2)、SDK (16.0.1) 和用于 Eclipse 的 ADT 插件。我能够毫无问题地“插入”SDK 入门套件。然后,当我去安装最新的 API 4.0.3(窗口 --> SDK manager ...)时,在控制台窗口的下部(以“DDMS”为标题)显示以下消息:

[2011-12-30 16:23:03 - DDMS] DDMS files not found: C:\Program Files    (x86)\eclipse\platform-tools\adb.exe C:\Program Files (x86)\eclipse\tools\hprof-conv.exe  C:\Program Files (x86)\eclipse\tools\traceview.bat 
[2011-12-30 16:47:18 - DeviceMonitor] Adb connection Error:An existing connection was forcibly closed by the remote host
[2011-12-30 16:47:19 - DeviceMonitor] Connection attempts: 1

I believe that the something is looking for DDMS within the eclipse folder and not the Android folder. If this is problem or otherwise, how do I fix it? Thanks in advance!

我相信某些东西是在 eclipse 文件夹而不是 Android 文件夹中寻找 DDMS。如果这是问题或其他问题,我该如何解决?提前致谢!

BTW I am using windows 7 (64 bit)

顺便说一句,我使用的是 Windows 7(64 位)

回答by sebap123

First of all check if there are or there aren't those files. If there aren't they you should have some problems during installation and the best way is to re-install SDK.

首先检查是否有这些文件。如果没有它们,您应该在安装过程中遇到一些问题,最好的方法是重新安装 SDK。

However, if you will find there those files than you can restart adb, that mean eclipse. In extreme cases computer.

但是,如果您会在那里找到那些文件而不能重新启动 adb,那就意味着 eclipse。在极端情况下计算机。

回答by jaime

Thanks to all of you, I also fixed all my errors, which included some listed here. Someone on another site also recommended the following, which fixed most (if not all) of my errors:

感谢你们所有人,我还修复了所有错误,其中包括此处列出的一些错误。另一个站点上的某人也推荐了以下内容,这些内容修复了我的大部分(如果不是全部)错误:

"Try changing the ADB connection timeout. I think it defaults that to 5000ms and I changed mine to 10000ms to get rid of that problem. If you are in Eclipse, you can do this by going through Window -> Preferences and then it is in DDMS under Android."

“尝试更改 ADB 连接超时。我认为它默认为 5000 毫秒,我将我的更改为 10000 毫秒以解决该问题。如果您在 Eclipse 中,您可以通过 Window -> Preferences 执行此操作,然后它在Android 下的 DDMS。”

In my case I had to go to the following (in Eclipse of course)

就我而言,我必须转到以下内容(当然在 Eclipse 中)

Windows->Preferences->Android->DDMS

Windows->首选项->Android->DDMS

-jaime

-海梅

回答by henry000dev

I had the same "DDMS files not found..." problem. I fixed it by making sure that the Android SDK path is set correctly in Eclipse (which is "C:\Program Files\Android\android-sdk" on my machine). This can be done in Eclipse->Windows->Preferences->Android->SDK Location. Note that if you are running Windows 7, it is best to run Eclipse and SDK Manager with the "Run as administrator" option.

我有同样的“未找到 DDMS 文件...”问题。我通过确保在 Eclipse 中正确设置了 Android SDK 路径(在我的机器上是“C:\Program Files\Android\android-sdk”)来修复它。这可以在 Eclipse->Windows->Preferences->Android->SDK Location 中完成。请注意,如果您运行的是 Windows 7,最好使用“以管理员身份运行”选项运行 Eclipse 和 SDK Manager。

I am running Windows 7 32-bit, Eclipse Indigo SR1, Android SDK r16.

我正在运行 Windows 7 32 位、Eclipse Indigo SR1、Android SDK r16。