when i build my to app to the my Phone Xiomi Redmi 4 it shows error to uninstall the previous app data but i don't have because i am build my app first time in my phone
Installation failed with message Failed to establish session. It is
possible that this issue is resolved by uninstalling an existing
version of the apk if it is present, and then re-installing. WARNING:
Uninstalling will remove the application data! Do you want to
uninstall the existing application?
Go to developer options in settings and disable MIUI optimizations. It'll ask you to reboot and it should work after that.