eclipse DDMS 显示在线模拟器的空文件资源管理器

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

DDMS showing empty file explorer for online emulator

androideclipseandroid-emulatoremulationddms

提问by GOLDEE

I am facing this problem from many day,i searched a lot but not found any convenient answer.

我很多天都面临这个问题,我搜索了很多但没有找到任何方便的答案。

Whenever I start a emulator ,after some time when I see DDMS its show the emulator online but its File Explorer is show nothing . Its visible again when I restart my emulator again or restart Eclipse .but I dont want this ,I want a quick solution.

每当我启动模拟器时,一段时间后,当我看到 DDMS 时,它会在线显示模拟器,但它的文件资源管理器什么也不显示。当我再次重新启动模拟器或重新启动 Eclipse 时,它​​再次可见。但我不想要这个,我想要一个快速的解决方案。

One more thing I have already set the device timeout to a higher value but its also not working. Here is Screen Shot of my DDMS .Can anyone have a Quick Solution.Thanks in advance.

还有一件事我已经将设备超时设置为更高的值,但它也不起作用。这是我的 DDMS 的屏幕截图。任何人都可以有快速解决方案。提前致谢。

enter image description here

在此处输入图片说明

回答by Adil Hussain

I see that the question was posted back in 2013 so there was probably some other problem at play then... but for those seeing this problem today it's probably because of an issue with Emulators targeting Android 24 or 25. Currently it appears that the Android Device Monitor is not able to display the file contents for Emulators targeting Android 24 or 25. It is however able to show file contents for Emulators targeting Android 23. Try launching an Emulator targeting Android 23 and you should see the Emulator's file contents in the File Explorer tab as expected.

我看到这个问题是在 2013 年发布的,所以当时可能还有其他一些问题......但对于今天看到这个问题的人来说,这可能是因为针对 Android 24 或 25 的模拟器存在问题。设备监视器无法显示面向 Android 24 或 25 的模拟器的文件内容。但是它能够显示面向 Android 23 的模拟器的文件内容。尝试启动面向 Android 23 的模拟器,您应该在文件中看到模拟器的文件内容资源管理器选项卡如预期。

I've created an Android bug report here.

我在这里创建了一个 Android 错误报告。

Edit:a couple more bug reports about this hereand here.

编辑:这里这里还有更多关于此的错误报告。

回答by prvn

from command prompt move to \sdk\platform-tools\

从命令提示符移动到 \sdk\platform-tools\

and type

并输入

adb kill-server 

and then

进而

adb start-server

回答by RAAAAM

I fixed it by the following steps: 1. Open windows task manager and kill adb.exe process. 2. Close eclipse and restart it. Then it works.

我通过以下步骤修复它: 1.打开windows任务管理器并杀死adb.exe进程。2.关闭eclipse并重新启动它。然后它起作用了。

Hope it helps.

希望能帮助到你。

But i cant understand about online emulators. Do you mean virtual devices ?

但我无法理解在线模拟器。你的意思是虚拟设备?

回答by Vamsi Pavan Mahesh

What you have to do is first launch the emulator ,then go the Window->show view -> other -> Android -> devices.Then you will be able to select the device that is online,now go the file explorer,which which will show all the files related to that specific device.Another point need to be noted here is ,the files in the file explorer varies from device to device

你需要做的是首先启动模拟器,然后去窗口->显示视图->其他->安卓->设备。然后你就可以选择在线的设备,现在去文件浏览器,哪个将显示与该特定设备相关的所有文件。这里需要注意的另一点是,文件资源管理器中的文件因设备而异

回答by Jihana Maharooft

You have to keep the device selected in the devices view.

您必须在设备视图中保持选择的设备。