Installation failed with the following output: pkg: /data/local/tmp/Package.apk Failure [INSTALL_CANCELED_BY_USER]

When I build an Apk file, it generates properly but having trouble when I try to run directly to my phone using ‘Build And Run’.

I’ve installed all required drivers, and also Unity Remote works correctly on the phone.

I know this is an older post but if you are using a Xiaomi phone, go to developer options and turn on ‘Install via USB’. You may need to turn off ‘MIUI optimizations’ and restart the phone.