更新时间:2022-12-16 18:07:25
因为你正在尝试将文件写入root,所以你需要将文件路径传递给你的文件目录.
Because you are trying to write the file to root, you need to pass the file path to your file directory.
例子
String filePath = context.getFilesDir().getPath().toString() + "/fileName.txt";
File f = new File(filePath);