Android unable to run logcat from application

前端 未结 2 1266
陌清茗
陌清茗 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条回答
  •  梦毁少年i
    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.

提交回复
热议问题