I am trying to debug a demo app of flutter in vscode where the error is showing for ADB exit with code 1 performing streamed install. I uninstall the existing Flutter demo app.
Asked
Active
Viewed 239 times
0
-
Welcome to SO! Please read the [how-to-ask article](https://stackoverflow.com/help/how-to-ask) before posting. Espc. do not post screen-shots of code etc. – toydarian Apr 09 '21 at 05:30
2 Answers
0
You should try with these three stuff:
- Check out if your emulator memory full.
- Check your package name is alright
- Clean your flutter and re-run
flutter clean
flutter run

Jahidul Islam
- 11,435
- 3
- 17
- 38
-
clean your flutter and re-run?? can u explain me this please?? actually new here. – Harshit rai Apr 08 '21 at 20:56
-
-
-
-
-
Error: ADB exited with exit code 1 Performing Streamed Install adb: failed to install C:\flutter project\first project\build\app\outputs\flutter-apk\app.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user] Error launching application on Redmi 5. – Harshit rai Apr 08 '21 at 21:51
-
make sure the developer option and your USB is enabled. If your developer mode is off then you should follow this solution https://stackoverflow.com/questions/47239251/install-failed-user-restricted-android-studio-using-redmi-4-device – Jahidul Islam Apr 08 '21 at 21:54
-
-
-
there will be another option called install over USB in developer options. check u enabled it . few devices have it for the first time when we are using usb debugging we have press allow on the device – SULPHURIC ACID Apr 10 '21 at 08:25
0
as APK built is Successful there is no issue with the code. there is something wrong with the device
check u enabled USB debugging check u enabled install over USB in developer option
few devices don't have to enable install over USB.
then
flutter clean && flutter pub get
uninstall the app in the device and run
flutter run -d <device name>
emphasized text

SULPHURIC ACID
- 278
- 5
- 19