[英]Error opening trace file android permission denied
I am getting a "error opening trace file: permission denied(13)" can somebody tell me what's that all about? 我收到一个“错误打开跟踪文件:权限被拒绝(13)”,有人可以告诉我这是怎么回事吗?
I've connected my phone instead of a virtual device... 我已连接手机而不是虚拟设备...
And im kinda a noob in android still and I want to Log.d everything to see how it works but it doesn't quite work on my phone. 而且我在Android领域还是个菜鸟,我想通过Log.d一切来了解它是如何工作的,但是在我的手机上却无法正常工作。
You are likely writing the log to the App's reserved disk space. 您可能会将日志写入应用程序的保留磁盘空间。 This space is reserved for that specific app only. 此空间仅保留用于该特定应用程序。 (Unless you're rooted- but that's a different topic altogether) (除非您已扎根-但这完全是另一个主题)
You are probably trying to read the log file from outside of your app, which is not allowed because this disk space is protected. 您可能正在尝试从应用程序外部读取日志文件,这是不允许的,因为此磁盘空间受到保护。
I would suggest trying to write the file to a shared memory location. 我建议尝试将文件写入共享内存位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.