简体   繁体   English

Android Studio 中的文件资源管理器

[英]File Explorer in Android Studio

Can anyone tell where the file explorer is located in Android Studio?谁能告诉文件浏览器在 Android Studio 中的位置?

I tried to search in windows menu but there isn't any option like "show view" that used to be in Eclipse.我试图在 Windows 菜单中进行搜索,但没有像以前在 Eclipse 中使用的“显示视图”这样的选项。

You can start Android Device Monitor from the Android Studio (green robot icon on the toolbar, to the left of the help icon).您可以从 Android Studio 启动 Android Device Monitor(工具栏上的绿色机器人图标,在帮助图标的左侧)。 From the ADM, select the device/emulator, then select the File Explorer tab.从 ADM 中选择设备/模拟器,然后选择文件资源管理器选项卡。

Android Studio 3 Canary 1 has a new Device File Explorer Android Studio 3 Canary 1有一个新的设备文件资源管理器

View -> Tool Windows -> Device File Explorer查看 -> 工具窗口 -> 设备文件资源管理器

So much better than DDMS and is the new improved way to get files off of your device!比 DDMS 好得多,是从设备中获取文件的新改进方法!

Allows you to 'Open', 'Save As', 'Delete', 'Synchronize' and 'Copy Path'.允许您“打开”、“另存为”、“删除”、“同步”和“复制路径”。 Pretty awesome stuff!非常棒的东西!

Android Studio 3 Canary 1 - 设备文件资源管理器

在此处输入图片说明

Then the Android Device Monitor window will pop up.然后会弹出 Android 设备监视器窗口。 Click on the emulator & File Explorer.单击模拟器和文件资源管理器。

Shared Preference files should be in:共享首选项文件应位于:

DDMS-> File Explorer ->data -> data -> MY_PACKAGE_NAME -> shared_prefs -> YOUR_PREFERENCE_NAME.xml DDMS-> 文件资源管理器 -> 数据 -> 数据 -> MY_PACKAGE_NAME -> shared_prefs -> YOUR_PREFERENCE_NAME.xml

在此处输入图片说明

it has changed and its docked to the right bottom of your android studio by default.默认情况下,它已更改并停靠在您的 android studio 的右下角。

在此处输入图片说明

if you dont have that you can open it through view -> tool windows -> device file explorer如果你没有,你可以通过视图 -> 工具窗口 -> 设备文件资源管理器打开它

在此处输入图片说明

This works on Android Studio 1.x:这适用于 Android Studio 1.x:

  • Tools --> Android --> Android Device Monitor (this open the ADM) Tools --> Android --> Android Device Monitor(这个打开ADM)
  • Window --> Show View窗口 --> 显示视图
  • Search for File Explorer then press the OK Button搜索文件资源管理器,然后按确定按钮
  • The File Explorer Tab is now open on the View文件资源管理器选项卡现在在视图上打开

Android Device Monitor is a part of ANDROID SDK . Android Device MonitorANDROID SDK的一部分。

You can found it here: C:\\android-sdk\\tools\\lib\\monitor-x86\\monitor.exe or C:\\android-sdk\\tools\\lib\\monitor-x86_64\\monitor.exe .你可以在这里找到它: C:\\android-sdk\\tools\\lib\\monitor-x86\\monitor.exeC:\\android-sdk\\tools\\lib\\monitor-x86_64\\monitor.exe

Run it for monitring or exploring files on the AVD.运行它以监视或浏览 AVD 上的文件。

[Additional stuff to Gene's answer] [Gene 回答的其他内容]

If we want to view the "com.google.android.gcm.xml" file we have to pull out the file from emulator.For that go to top right side of the panel there is button(floppy disk and arrow) for this operation.如果我们想查看“com.google.android.gcm.xml”文件,我们必须从模拟器中拉出该文件。为此,请转到面板的右上角,有用于此操作的按钮(软盘和箭头) .

从设备中拉取文件

Then we can give the location to save the file.You can open it from any text editor and you will be able to view the content of the XML file.然后我们可以给出保存文件的位置。您可以从任何文本编辑器打开它,您将能够查看 XML 文件的内容。

Android 3.4.1 > 顶部菜单 > 查看 > 工具窗口 > 设备文件管理器

这是非常简单的兄弟单击帮助菜单正下方的Android设备监视器(ADM),然后在ADM上从左侧屏幕菜单中选择您的文件资源管理器或了解更多详细信息, 请点击此处它可能会帮助您

我不确定最新版Android Studio中是否存在文件资源管理器(在我的情况下为2.2.2)

As of Android Studio 2.4 Preview, it seems that they introduced "Device File Explorer" directly into the IDE, so we can finally say goodbye to DDMS.从 Android Studio 2.4 Preview 开始,他们似乎直接在 IDE 中引入了“设备文件资源管理器”,因此我们终于可以告别 DDMS。 You can enable it from the menu under "View >> Tool Windows".您可以从“查看>>工具窗口”下的菜单中启用它。

Refer Here参考这里

With Android Studio, you may use Android file explorer like: Click View > Tool Windows > Device File Explorer or click the Device File Explorer使用 Android Studio,您可以使用 Android 文件资源管理器,例如:单击“查看”>“工具窗口”>“设备文件资源管理器”或单击“设备文件资源管理器”

视图 > 工具窗口 > 设备文件资源管理器

1- 菜单,“工具”->“Android”->“DDMS(包括显示器)” 2- 打开文件资源管理器选项卡。

I am in Android 3.6.1, and the way " Top Menu > View > Tools Window > Device File Manager" doesn't work.Because there is no the "Device File Manager" option in Tools Window.我在 Android 3.6.1 中,“顶部菜单 > 查看 > 工具窗口 > 设备文件管理器”的方式不起作用。因为工具窗口中没有“设备文件管理器”选项。

But I resolve the problem with another way:但我用另一种方式解决了这个问题:

1、Find the magnifier icon on the top right toobar. 1、在工具栏右上角找到放大镜图标。 在此处输入图片说明

2、Click it and search "device" in the search bar, and you can see it. 2、点击它,在搜索栏中搜索“设备”,即可看到。 在此处输入图片说明

If anyone is looking for the Android Studio (2.3.1) on Mac OSX (10.12.1) answer then here are the steps for it.如果有人在 Mac OSX (10.12.1) 上寻找 Android Studio (2.3.1) 答案,那么这里是它的步骤。

  1. Tools Menu > Android > Android Device Monitor工具菜单 > Android > Android 设备监视器

  2. Choose Your Device (at Left) > Click on File Explorer Tab (at Right)选择您的设备(左侧)> 单击文件资源管理器选项卡(右侧)

Hope this helps.希望这可以帮助。

Device Explorer path for Emulator in Mac Mac 中模拟器的设备资源管理器路径

/Users/"UserName"/Documents/AndroidStudio/DeviceExplorer/...

Logs File path for Emulator in Mac Mac 模拟器的日志文件路径

/Users/"UserName"/Documents/AndroidStudio/DeviceExplorer/"EmulatorName"/storage/emulated/0/Android/data/com.app.domain/files/LogFiles/

Shared Preferences File path for Emulator in Mac Mac 中模拟器的共享首选项文件路径

/Users/"UserName"/Documents/AndroidStudio/DeviceExplorer/"EmulatorName"/data/data/com.app.domain/shared_prefs/

Do you mean Project Explorer?你是说项目浏览器吗? Click 'Project' tab on the left edge of Android Studio.单击 Android Studio 左边缘的“项目”选项卡。

如果您希望基本答案在左侧显示文件,只需依次单击“查看”和“工具按钮”,您就可以选择“项目”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM