i just wanted debug my flutter app on xiaomi x4Pro phone and other xiaomi phone but this error occurred:
Launching lib\main.dart on 2201116PG in debug mode...
lib\main.dart:1
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install C:\code\FL\redo remaster\redo\build\app\outputs\flutter-
apk\app.apk:
Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user]
Error launching application on 2201116PG.
Exited (sigterm)
but when i run app in Samsung phone everything goes fine.
apart from having usb debug enabled, you have to enable the option to install via usb and usb debugging, I hope the solution works for you solution
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.