Eclipse、adb 和 ddms 未检测到 Android 模拟器

2023-06-26Java开发问题
11

本文介绍了Eclipse、adb 和 ddms 未检测到 Android 模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我想尝试编写android设备,所以我按照android网站的指示安装了sdk、java sdk和eclipse.我的电脑是 Windows 7 64 位,但我安装了 32 位 Java SDK 和 Eclipse,因为听说 64 位版本存在问题.

I wanted to try my hand at programming android devices, so I followed the directions from the android website, installed the sdk, the java sdk, and eclipse. My computer is Windows 7 64-Bit, but I have the 32-bit Java SDK and Eclipse installed since hearing that there are issues with the 64-bit versions.

我正在运行最新版本的 Android sdk,4.0 R15.

I am running the most recent version of the Android sdk, 4.0 R15.

我相信遵循了所有的安装说明,但是当我加载一个示例(在这种情况下为 Lunar Lander)时,它会加载模拟器,但不会将应用程序安装到它.当我使用adb devices"时,ADB 没有显示列出的模拟器,eclipse 中的 DDMS 透视图也没有检测到任何设备.在模拟器中,我已经激活了开发人员区域中的 USB 调试设置.

I believe followed all of the instructions for installation, but when I load up a sample (Lunar Lander in this case), it loads the emulator, but will not install the app to it. ADB does not show the emulator listed when I use "adb devices", the DDMS perspective in eclipse does not detect any device either. In the emulator I have activated the USB debug setting in the developer area.

我试过重启adb服务器,重装了几次.

I have tried restarting the adb server, and have reinstalled a few times.

我什至抄袭了一个人在 youtube 教程中为 hello world 程序所做的事情,但它仍然无法加载到设备上.

I even copied what one guy did on a youtube tutorial for a hello world program, and it still would not load to the device.

有人知道如何让模拟器和 Eclipse 对话,这样我就可以实际运行和调试程序了吗?

Does anybody have any idea how to get the emulator and eclipse talking so I can actually run and debug programs?

推荐答案

尝试adb kill-server,然后执行类似adb devices的adb命令,会再次启动adb.

Try to adb kill-server and then do adb command like adb devices which will start adb again.

这对我有帮助.

这篇关于Eclipse、adb 和 ddms 未检测到 Android 模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

在 Eclipse 项目中使用西里尔文 .properties 文件
Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)...
2024-08-25 Java开发问题
18

如何在java中找出依赖于语言环境的文本方向?
How to find out locale-dependent text orientation in java?(如何在java中找出依赖于语言环境的文本方向?)...
2024-08-25 Java开发问题
24

Eclipse 在尝试启动 Android 应用程序时卡住了
Eclipse gets stuck when trying to launch Android app(Eclipse 在尝试启动 Android 应用程序时卡住了)...
2024-08-25 Java开发问题
14

Eclipse:无法初始化监视器线程:无法建立环回连接
Eclipse: Failed to initialize Monitor Thread: Unable to establish loopback connection(Eclipse:无法初始化监视器线程:无法建立环回连接)...
2024-08-25 Java开发问题
4

Eclipse-找不到JDK
Eclipse- JDK not found(Eclipse-找不到JDK)...
2024-08-25 Java开发问题
6

错误:CreateProcess 错误=216,此版本的 %1
Error:CreateProcess error=216, This version of %1(错误:CreateProcess 错误=216,此版本的 %1)...
2024-08-25 Java开发问题
9