我是这个编程世界的新手。我第一次制作了一个小应用程序(apk文件的大小为1.74MB)并在几个月前将它发布到google play。我使用android studio模拟器测试了我的应用程序(在启动到Play商店之前)所有操作系统版本,并且它适用于所有这些版本。现在我收到了来自7位用户的26份崩溃报告,我不知道出了什么问题。我根据崩溃报告中给出的堆栈跟踪单独检查了我的应用程序中的每一行,并意识到这些行是由应用程序本身创建的。我在过去一周内在互联网上搜索过这个问题的解决方案。
98人安装了这个应用程序,我只收到其中7个人的崩溃报告。这7个设备的内存管理不良(可用空间少,安装的应用程序太多等)是否有可能发生这种崩溃?
以下是这7个设备的堆栈跟踪。我个人在三星Galaxy J7 prime中使用了这个应用程序,它运行良好。 但是,此处还有来自相同类型设备的崩溃报告。
Oct 20, 1:10 PM on app version 2
Samsung Galaxy J7 Prime (on7xelte), 3072MB RAM, Android 6.0
Report 6 of 6
java.lang.IllegalStateException:
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick (AppCompatViewInflater.java:293)
at android.view.View.performClick (View.java:5721)
at android.widget.TextView.performClick (TextView.java:10931)
at android.view.View$PerformClick.run (View.java:22620)
at android.os.Handler.handleCallback (Handler.java:739)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:148)
at android.app.ActivityThread.main (ActivityThread.java:7409)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)
Caused by: java.lang.reflect.InvocationTargetException:
at java.lang.reflect.Method.invoke (Native Method)
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick (AppCompatViewInflater.java:288)
Nov 3, 12:45 PM on app version 2
Huawei Y3II (HWLUA-L6735), 1024MB RAM, Android 5.1
Report 1 of 2
java.lang.IllegalStateException:
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick (AppCompatViewInflater.java:293)
at android.view.View.performClick (View.java:4848)
at android.view.View$PerformClick.run (View.java:20270)
at android.os.Handler.handleCallback (Handler.java:815)
at android.os.Handler.dispatchMessage (Handler.java:104)
at android.os.Looper.loop (Looper.java:194)
at android.app.ActivityThread.main (ActivityThread.java:5674)
at java.lang.reflect.Method.invoke (Native Method)
at java.lang.reflect.Method.invoke (Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:963)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:758)
Caused by: java.lang.reflect.InvocationTargetException:
at java.lang.reflect.Method.invoke (Native Method)
at java.lang.reflect.Method.invoke (Method.java:372)
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick (AppCompatViewInflater.java:288)
Oct 25, 9:52 AM on app version 2
Samsung Galaxy Note3 (hltektt), 3072MB RAM, Android 5.0
Report 2 of 2
java.lang.IllegalStateException:
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick (AppCompatViewInflater.java:293)
at android.view.View.performClick (View.java:5194)
at android.view.View$PerformClick.run (View.java:20903)
at android.os.Handler.handleCallback (Handler.java:739)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:145)
at android.app.ActivityThread.main (ActivityThread.java:5942)
at java.lang.reflect.Method.invoke (Native Method)
at java.lang.reflect.Method.invoke (Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1194)
Caused by: java.lang.reflect.InvocationTargetException:
at java.lang.reflect.Method.invoke (Native Method)
at java.lang.reflect.Method.invoke (Method.java:372)
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick (AppCompatViewInflater.java:288)
Nov 11, 3:16 PM on app version 2
Oppo CPH1701 (CPH1701), 3072MB RAM, Android 6.0
Report 1
java.lang.IllegalStateException:
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick (AppCompatViewInflater.java:293)
at android.view.View.performClick (View.java:5231)
at android.view.View$PerformClick.run (View.java:21240)
at android.os.Handler.handleCallback (Handler.java:739)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:179)
at android.app.ActivityThread.main (ActivityThread.java:5730)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:791)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:681)
Caused by: java.lang.reflect.InvocationTargetException:
at java.lang.reflect.Method.invoke (Native Method)
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick (AppCompatViewInflater.java:288)
Oct 30, 10:47 PM on app version 2
OnePlus OnePlus3T (OnePlus3T), 6144MB RAM, Android 7.1
Report 15
java.lang.IllegalStateException:
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick (AppCompatViewInflater.java:293)
at android.view.View.performClick (View.java:5669)
at android.view.View$PerformClick.run (View.java:22549)
at android.os.Handler.handleCallback (Handler.java:751)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:154)
at android.app.ActivityThread.main (ActivityThread.java:6321)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:776)
Caused by: java.lang.reflect.InvocationTargetException:
at java.lang.reflect.Method.invoke (Native Method)
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick (AppCompatViewInflater.java:288)
Oct 20, 4:46 PM on app version 2
HTC One A9 (htc_hiaeuhl), 2048MB RAM, Android 7.0
Report 17 of 18
java.lang.IllegalStateException:
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick (AppCompatViewInflater.java:293)
at android.view.View.performClick (View.java:5637)
at android.view.View$PerformClick.run (View.java:22396)
at android.os.Handler.handleCallback (Handler.java:751)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:173)
at android.app.ActivityThread.main (ActivityThread.java:6459)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:938)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:828)
Caused by: java.lang.reflect.InvocationTargetException:
at java.lang.reflect.Method.invoke (Native Method)
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick (AppCompatViewInflater.java:288)
Nov 4, 1:58 PM on app version 2
Samsung Galaxy J2(2016) (j2xlte), 1536MB RAM, Android 6.0
Report 1
java.lang.IllegalStateException:
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick (AppCompatViewInflater.java:293)
at android.view.View.performClick (View.java:5716)
at android.widget.TextView.performClick (TextView.java:10926)
at android.view.View$PerformClick.run (View.java:22596)
at android.os.Handler.handleCallback (Handler.java:739)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:148)
at android.app.ActivityThread.main (ActivityThread.java:7325)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)
Caused by: java.lang.reflect.InvocationTargetException:
at java.lang.reflect.Method.invoke (Native Method)
at android.support.v7.app.AppCompatViewInflater$DeclaredOnClickListener.onClick (AppCompatViewInflater.java:288)