开发者

How to read the stack trace file in Android?

I'm trying to 开发者_StackOverflow社区print the logs in the screen. But it's showing an error that:

Unable to open stack trace file '/data/anr/traces.txt':Permission denied.

How can I access the stack trace file?


All the stack trace is printed in the LogCat so go to DDMS window and select the LogCat tab.

If log cat is not visible select the device Tab from the DDMS and select your device on which you are testing.

If both the Tabs aren't visible to you then see the left bottom corner of Eclipse click on the + sign and select LogCat


i hope your using eclipse, you can find it in ddms window.


  1. Open your project in Android Studio
  2. From the Analyze menu, click Analyze Stack Trace or Thread Dump.

    How to read the stack trace file in Android?

  3. Paste the stack trace text into the Analyze Stack Trace window and click OK.

    How to read the stack trace file in Android?

  4. Android Studio opens a new Stacktrace tab with the stack trace you pasted under the Run window.

    How to read the stack trace file in Android?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜