从 Crashlytics 崩溃报告的源代码中查找视图 ID

Find View id in source code from Crashlytics crash report

我发布了一个内置 Crashlytics 的应用程序来发送崩溃报告,这是我收到的报告:

"Fatal Exception: java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your adapter calls notifyDataSetChanged() when its content changes. [in ListView(2131493375, class android.widget.ListView) with Adapter(class com.nhatnq.app.b.cr)] at android.widget.ListView.layoutChildren(ListView.java) at android.widget.AbsListView.onLayout(AbsListView.java) ..."

我想知道是哪个 Apdater/ListView 发生了这次崩溃,所以我想从这些事情中追踪:

我这里需要检查什么,找到正确的ListView/Adapter然后我可以检查?现在我有 5 个适配器,真的不知道需要检查什么,因为这个问题只发生在某些手机上。 我在一个团队中工作,其他人负责从团队源代码中发布应用程序。

您的版本 "guy" 可能使用了 Proguard 或类似的东西,因此 class 名称被混淆了 (class com.nhatnq.app.b.cr)。这是一个让别人更难对你的代码进行逆向工程的程序。

您需要请他回溯(或反混淆)代码,以便您可以正确识别 class。他应该保留这样做的文件,在 Proguard 的情况下,这里有一个参考:

http://simplyadvanced.net/blog/android-how-to-decode-proguards-obfuscated-code-from-stack-trace/