The version of device: API28 , compileSdkVersion 28
The code of bug
ToastUtils.showShort(message);
The stack of crash
W/System.err: java.lang.NoSuchFieldException: No field mActivityList in class Landroid/app/ActivityThread; (declaration of 'android.app.ActivityThread' appears in /system/framework/framework.jar)
at java.lang.Class.getDeclaredField(Native Method)
at com.blankj.utilcode.util.Utils$ActivityLifecycleImpl.getTopActivityByReflect(Utils.java:488)
at com.blankj.utilcode.util.Utils$ActivityLifecycleImpl.getTopActivity(Utils.java:386)
at com.blankj.utilcode.util.Utils.getTopActivityOrApp(Utils.java:134)
at com.blankj.utilcode.util.ToastUtils$ToastWithoutNotification.realShow(ToastUtils.java:467)
at com.blankj.utilcode.util.ToastUtils$ToastWithoutNotification.access$800(ToastUtils.java:427)
at com.blankj.utilcode.util.ToastUtils$ToastWithoutNotification$2.run(ToastUtils.java:453)
at android.os.Handler.handleCallback(Handler.java:873)
ToastUtils在ColorOS 6 上报java.lang.NoSuchMethodError
弹出Toast报错,页面无任何显示
The code of bug
The stack of crash
Screenshots
None