If multiple users are added to your phone and the current user is not the main user, switch to the main user and try again.
If multiple users are added to your phone and the current user is not the main user, switch to the main user and try again.
Do not enable Allow ADB debugging in charge only mode. Otherwise, Use USB to must be set to Charge only.