大佬教程收集整理的这篇文章主要介绍了java – Android应用没有崩溃,但没有响应未捕获的异常,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
当我在onCreate()(在super.onCreate()之后)抛出一个NullPointerException时,应用程序会显示一个白色的屏幕,但不会崩溃.
Logcat说:
06-30 14:00:59.386 26259-26259/? I/GAv4﹕ Google Analytics 7.5.71 is starTing up. To enable debug logging on a device run: adb sHell setprop log.tag.GAv4 DEBUG adb logcat -s GAv4 06-30 14:00:59.398 26259-26259/? W/GAv4﹕ AnalyticsReceiver is not registered or is disabled. Register the receiver for reliable dispatching on non-Google Play devices. See http://goo.gl/8Rd3yj for instructions. 06-30 14:00:59.409 26259-26259/? W/GAv4﹕ CampaignTrackingReceiver is not registered,not exported or is disabled. Installation campaign tracking is not possible. See http://goo.gl/8Rd3yj for instructions. 06-30 14:00:59.414 26259-26295/? W/GAv4﹕ Analyticsservice not registered in the app manifest. Hits might not be delivered reliably. See http://goo.gl/8Rd3yj for instructions. 06-30 14:00:59.467 26259-26259/? D/AndroidRuntime﹕ ShutTing down VM
我想看到未知的例外,因为如果我没有看到堆栈跟踪和问题的原因,那么很难解决它们.
我可以做些什么来恢复以前的行为?
编辑:删除分析错误报告(不调用tracker.enableExceptionReporTing(true);)后,我再次收到崩溃.我使用Google Analytics(分析)从Play services 7.5.0.
以上是大佬教程为你收集整理的java – Android应用没有崩溃,但没有响应未捕获的异常全部内容,希望文章能够帮你解决java – Android应用没有崩溃,但没有响应未捕获的异常所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。