在logcat中Android的工作室缺少的异常堆栈跟踪 [英] Android Studio missing exception stacktrace in Logcat

查看:149
本文介绍了在logcat中Android的工作室缺少的异常堆栈跟踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一段时间以来,Android的工作室不显示开发的应用程序崩溃时我堆栈跟踪。所有我能看到的是以下行:

For some time, Android Studio doesn't show me stacktrace when developed application crashes. All I can see is following line:

06-09 16:12:36.875  26037-26037/com.a.b W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x4206c700)

这让我发疯,因为我看不到,这里的应用程序真的崩溃(和发生什么异常)。我使用的是1.3 preVIEW 2.起初,我虽然有问题的依赖,但现在我只使​​用这些,仍然会出现问题:

This drives me crazy because I cannot see, where application really crashed (and what exception occurs). I'm using AS 1.3 Preview 2. At first I though there is problem with dependencies, but now I'm using just these and problem still occurs:

dependencies {
  compile fileTree(dir: 'libs', include: ['*.jar'])
  compile 'com.android.support:appcompat-v7:22.2.0'
  compile 'com.google.android.gms:play-services-base:7.5.0'
  compile 'com.google.android.gms:play-services-analytics:7.5.0'
  compile 'com.jakewharton:butterknife:6.1.0'
}

问题可能是基于事实,即应用程序不会崩溃,而只是冻结。

Problem is probably based on fact that application doesn't crash, but only freeze.

感谢您的每一个建议。

推荐答案

尝试删除所有依赖于你的build.gradle文件。恕我直言,这个错误会在播放 - 服务 - 分析。谷歌Analytics(分析)跟踪异常。尝试删除 tracker.enableExceptionReporting(真)在code。

Try to remove all dependencies in your build.gradle file. IMHO, the bug will be in play-services-analytics. Google Analytics tracks exception. Try to remove tracker.enableExceptionReporting(true) in your code.

这篇关于在logcat中Android的工作室缺少的异常堆栈跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆