Especially happening with Gmail, Youtube and sometimes other apps. Sometimes the error message is something like "java out of memory" sometimes it is "anr input dispatching timed out".
This happens all the time but especially happens when the mail got some attachments and i am scrolling or scrolling through comments on Youtube. Scrolling gets really laggy and eventually freezes.
Clearing caches have not helped.
All the apps and android is up to date and stock.
Any help would be really helpful because my phone is literally useless like this.
Xiaomi Mi Max 2 64GB