Logcat 未捕获的异常详细信息未出现在实际设备上,而是出现在模拟器上
Logcat uncaught Exception details not appearing on actual device but emulators
W/dalvikvm﹕threadid=1: thread exiting with uncaught exception (group=0x41823da0)
I/dalvikvm﹕ threadid=3: reacting to signal 3 07-03 14:54:48.967
I/dalvikvm﹕ Wrote stack traces to '/data/anr/traces.txt'
---> Exception details missing here
我最近注意到,当我正在开发的应用程序崩溃时,如果 运行 在实际设备上(在 Galaxy S3-Android 上测试过,logcat 处不会显示任何异常详细信息和 4.3 和 Galaxy S5-Android 4.4),但如果我在 android 模拟器上重现崩溃,则可以使用完整的异常堆栈跟踪。
我正在使用 Android Studio 1.3、Platform-tools 22、Build-tools 22.0.1
您遇到过类似的问题吗?你设法解决了吗?
谢谢。
如果您正在使用 Google Analytics,请删除 build.gradle 文件中的所有依赖项,因为 Google Analytics 会跟踪所有异常。
删除代码中的 tracker.enableExceptionReporting(true)。
原回答来自
W/dalvikvm﹕threadid=1: thread exiting with uncaught exception (group=0x41823da0)
I/dalvikvm﹕ threadid=3: reacting to signal 3 07-03 14:54:48.967
I/dalvikvm﹕ Wrote stack traces to '/data/anr/traces.txt'
---> Exception details missing here
我最近注意到,当我正在开发的应用程序崩溃时,如果 运行 在实际设备上(在 Galaxy S3-Android 上测试过,logcat 处不会显示任何异常详细信息和 4.3 和 Galaxy S5-Android 4.4),但如果我在 android 模拟器上重现崩溃,则可以使用完整的异常堆栈跟踪。
我正在使用 Android Studio 1.3、Platform-tools 22、Build-tools 22.0.1
您遇到过类似的问题吗?你设法解决了吗?
谢谢。
如果您正在使用 Google Analytics,请删除 build.gradle 文件中的所有依赖项,因为 Google Analytics 会跟踪所有异常。
删除代码中的 tracker.enableExceptionReporting(true)。
原回答来自