I am facing this issue when trying to run any flutter app on android emulator or physical device. It fails while executing adb command for installing the application.
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to open /Users/mohitsingh/Desktop/testapp/testapp/build/app/outputs/flutter-apk/app.apk: Operation not permitted
Warning: Failed to install APK.
However if I run the same command manually, It fails with the same error for the first time after app is built with flutter build apk command but it is successfully installed on subsequent trials with
adb -s emulator-5554 install build/app/outputs/flutter-apk/app.apk
All other commands of adb seem to work fine. It was working fine till last week but this error started coming up suddenly with adb.
Error: ADB exited with exit code 1 is a common error Here are the following solutions for that
Solution 1
add
android:exported="truein your AndroidManifest.xml fileSolution 2
run the following Command