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

查看:40
本文介绍了如何使用 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> <file-destination-remote>

您也可以将文件从模拟器复制到桌面

You can also copy file from emulator to Desktop

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

您还可以使用 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 can pull/push files from there.

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

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