我收到此日志警告
09-29 17:05:27.539 16093-19955/com.popcornstay.popcornstay W/art: Long
monitor contention with owner Timer-83 (19829) at boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long)(MessageQueue.java:547) waiters=143 in boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long) for 8.702s
09-29 17:05:27.539 16093-16277/com.popcornstay.popcornstay W/art: Long monitor contention with owner Timer-83 (19829) at boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long)(MessageQueue.java:547) waiters=143 in boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long) for 8.702s
09-29 17:05:27.539 16093-19915/com.popcornstay.popcornstay W/art: Long monitor contention with owner Timer-83 (19829) at boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long)(MessageQueue.java:547) waiters=143 in boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long) for 8.668s
09-29 17:05:27.539 16093-16553/com.popcornstay.popcornstay W/art: Long monitor contention with owner Timer-83 (19829) at boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long)(MessageQueue.java:547) waiters=143 in boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long) for 8.700s
09-29 17:05:27.539 16093-16465/com.popcornstay.popcornstay W/art: Long monitor contention with owner Timer-83 (19829) at boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long)(MessageQueue.java:547) waiters=143 in boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long) for 8.703s
09-29 17:05:27.539 16093-20640/com.popcornstay.popcornstay W/art: Long monitor contention with owner Timer-83 (19829) at boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long)(MessageQueue.java:547) waiters=143 in boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long) for 8.668s
09-29 17:05:27.539 16093-22796/com.popcornstay.popcornstay W/art: Long monitor contention with owner Timer-121 (20431) at boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long)(MessageQueue.java:547) waiters=143 in boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long) for 8.600s
09-29 17:05:27.539 16093-19829/com.popcornstay.popcornstay W/art: Long monitor contention with owner main (16093) at android.os.Message android.os.MessageQueue.next()(MessageQueue.java:331) waiters=143 in boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long) for 8.601s
09-29 17:05:27.539 16093-17260/com.popcornstay.popcornstay W/art: Long monitor contention with owner Timer-83 (19829) at boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long)(MessageQueue.java:547) waiters=143 in boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long) for 8.668s
请帮我解决这个问题。
因此,我的应用程序无法正常工作并在 30 秒后挂起。
对此提出任何解决方案。
这导致挂起和之后的 ANR。