Java.lang.NoSuchMethodError: android.app.ANRAppManager.dumpMessageHistory

In my Android app, a crash message was indicated:

java.lang.NoSuchMethodError: android.app.ANRAppManager.dumpMessageHistory
at android.app.ActivityThread$ApplicationThread.dumpMessageHistory(ActivityThread.java:1177)
at android.app.ApplicationThreadNative.onTransact(ApplicationThreadNative.java:609)
at android.os.Binder.execTransact(Binder.java:351)
at dalvik.system.NativeStart.run(Native Method)

Many Android devices reported the same failure:

Android|Android=>3
android|Coolpad=>1
Android|Lenovo=>1
Android|VIVO=>2
apsl|Lenovo=>1
apsl|Samsung=>2
ARES|AE912=>3
Coolpad|Coolpad=>2
COWW|C920=>5
GoDonie|GoDonie F7=>1
HESM|HSEM TD777=>2
HMI|H2=>1
huawei|huawei=>2
intki|intki_E86=>3
ioco|i9100 X6=>1
Lenovo|Lenovo A820T=>1
MEEG|MEEG_101M=>2
NEWLAND|N003=>2
SAST|SAST YC500=>1

But I did not find "dumpMessageHistory" in my code, please help, thanks!

+4
source share
1 answer

The class android.app.ANRAppManagercannot be found in the Android application platform ( /frameworks/base/core/java/android/app). This is probably the class supplied by the supplier for MTK chips. Whenever ANR appears, it will be called ANRAppManager.dumpMessageHistory.

The best advice would be to keep track of all the ANR cases that occur in your application and try to fix it.

0
source

Source: https://habr.com/ru/post/1541858/


All Articles