Android unable to run logcat from application

前端 未结 2 1248
陌清茗
陌清茗 2020-12-22 02:54

So I am writing a profiler that needs to be able to log exceptions during the profiling session. My plan was to use logcat to dump to a file either on the SD card or the int

相关标签:
2条回答
  • 2020-12-22 03:35

    And the moral of the story is: double check that your permission in your manifest file actually says READ_LOGS and not just READ_LOG.

    0 讨论(0)
  • 2020-12-22 03:38

    Just in case somebody runs into the same problem I had: When trying to read logcat from a Unit test, the permission needs to be added to the application under test, not the test project. Adding the permission to the test project only will still give permission errors.

    0 讨论(0)
提交回复
热议问题