Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

debugging - Android Studio missing exception stacktrace in Logcat

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)

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.

Thanks for every suggestion.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...