任何人都可以帮助解决这个问题
当我尝试该代码
File routesRoot = Environment.getExternalStorageDirectory();
if (!routesRoot.canWrite())
System.out.println("can't write root");
if (!routesRoot.canRead())
System.out.println("can't read root");
Run Code Online (Sandbox Code Playgroud)
当运行程序时都无法写/读
我已设置访问SD卡的权限是什么问题?