简体   繁体   English

Flutter andoid 模拟器在哪里使用path_provider将文件保存到Windows本地磁盘?

[英]Where does Flutter andoid emulator save file to Windows local disk with path_provider?

Seriously, I can't find the answer to this anywhere.说真的,我在任何地方都找不到答案。 You'd think it would be one of the first things to explain about the path_provider package.你会认为这是解释 path_provider 包的第一件事。 I can't find my json file anywhere.我在任何地方都找不到我的 json 文件。

I even searched my entire hard drive using the path it gives me when printing to debug console: /data/user/0/com.example.word_count_tracker/app_flutter but it didn't find anything.我什至使用打印到调试控制台时它给我的路径搜索了我的整个硬盘驱动器:/data/user/0/com.example.word_count_tracker/app_flutter 但它没有找到任何东西。 Where can I find it?我在哪里可以找到它?

Well the path you are getting as the output to console is the path it is using on the virtual device.好吧,您作为控制台输出获得的路径是它在虚拟设备上使用的路径。 Note that this path doesn't necessarily correspond to an actual path on your PC.请注意,此路径不一定对应于您 PC 上的实际路径。

To view the files from your emulator, go to Android Studio, then要从模拟器查看文件,请转到 Android Studio,然后
View -> Tools Window -> Device File Explorer查看 -> 工具窗口 -> 设备文件资源管理器

Generally speaking the place where these files are stored in your PC would be: C:\\\\<username>\\.android\\avd一般来说,这些文件存储在您的 PC 中的位置是: C:\\\\<username>\\.android\\avd

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

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