Flutter 如何使用flatter从应用程序中导出csv文件?不使用简单权限插件和权限处理程序插件

Flutter 如何使用flatter从应用程序中导出csv文件?不使用简单权限插件和权限处理程序插件,flutter,Flutter,我想导出.csv文件以从应用程序下载文件夹。我的应用程序正在使用flatter开发。我尝试使用简单的权限和权限处理程序插件,但两者都与其他插件存在问题/冲突…因此,我可以在不使用这两个插件的情况下导出吗 参考资料: https://www.woolha.com/tutorials/flutter-reading-and-writing-files-example https://icircuit.net/create-csv-file-flutter-app/2614 https://flutt

我想导出.csv文件以从应用程序下载文件夹。我的应用程序正在使用flatter开发。我尝试使用简单的权限和权限处理程序插件,但两者都与其他插件存在问题/冲突…因此,我可以在不使用这两个插件的情况下导出吗

参考资料:

https://www.woolha.com/tutorials/flutter-reading-and-writing-files-example
https://icircuit.net/create-csv-file-flutter-app/2614
https://flutter.dev/docs/cookbook/persistence/reading-writing-files
https://stackoverflow.com/questions/56074889/how-do-i-fix-this-error-of-simple-permissions-on-flutter
https://stackoverflow.com/questions/50561737/getting-permission-to-the-external-storage-file-provider-plugin
单击“导出”按钮时出错:

[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: FileSystemException: Cannot open file, path = '/storage/emulated/0/Download/export.csv' (OS Error: Permission denied, errno = 13)
尝试使用简单权限插件时出错: 与以下内容相同的错误: 但是指南中的步骤说需要卸载并重新安装android studio…我还有其他选择吗

*******************************************************************************************
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See  for more information on the problem and how to fix it.
*******************************************************************************************