Hello, which rom do you have? custom?
1. I has same problem on mi a2 lite and i installed original android one rom and install it by flashtool. i think for A2 will be same https://www.xiaomiflash.com/download/
★ Xiaomi Mi A2 Latest Global Stable Version Fastboot File Download
you can use this...