如何使用Android Studio将文件推送到仿真器实例 [英] How to push files to an emulator instance using Android Studio

查看:82
本文介绍了如何使用Android Studio将文件推送到仿真器实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Android Studio将.txt文件推送到模拟器?

How am I able to push .txt files to the emulator using Android Studio?

推荐答案

您可以通过终端使用ADB将文件从桌面传递到仿真器.

You can use the ADB via a terminal to pass the file From Desktop to Emulator.

adb push <file-source-local> <destination-path-remote>

您还可以将文件从仿真器复制到桌面

You can also copy file from emulator to Desktop

adb pull <file-source-remote> <destination-path>

但是,您还可以使用Android设备监视器来访问文件.单击可在工具栏本身中找到的Android图标.加载需要几秒钟.加载后,您会看到一个名为文件资源管理器"的标签.现在您可以从那里拉/推文件了.

How ever you can also use the Android Device Monitor to access files. Click on the Android Icon which can be found in the toolbar itself. It'll take few seconds to load. Once it's loaded, you can see a tab named "File Explorer". Now you could pull/push files from there.

这篇关于如何使用Android Studio将文件推送到仿真器实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆