I’m getting the following error when running my flutter project on Android Emulator. It works fine on iOS Simulator and the project is also fine on my other Mac (runs on both Android and iOS Simulator)
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install /Users/xxxx/Dropbox/Flutter/test_app/build/app/outputs/apk/app.apk:
Error launching application on Android SDK built for x86.
I’ve cleaned my project and reset my emulator but no luck. It only affects my mac book pro android build.
Flutter doctor also shows no issues
[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.5 18F132, locale en-CA)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[!] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
✗ Verify that all connected devices have been paired with this computer in Xcode.
If all devices have been paired, libimobiledevice and ideviceinstaller may require updating.
To update with Brew, run:
brew update
brew uninstall --ignore-dependencies libimobiledevice
brew uninstall --ignore-dependencies usbmuxd
brew install --HEAD usbmuxd
brew unlink usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller
[✓] Android Studio (version 3.4)
[✓] Connected device (2 available)
asked May 29, 2019 at 19:13
2
I know two reasons that lead to this error :
- Maybe your device/emulator’s storage is full. try deleting some apps
or similar to free up storage.
Or
- Invalid package name . for example, using a capital letter in the package name. use this to change package name in flutter
answered Jun 2, 2019 at 17:37
KaptaKapta
1,49514 silver badges24 bronze badges
4
FAST SOLUTION (worth trying quickly before attempting more complex solutions):
Run the command flutter clean
(Cleans out your build/dependencies)
Then run the command flutter pub get
(Gets your dependencies again)
Now try running your project!
answered May 18, 2020 at 0:52
0
for my phone (not emulator) i disabled Verify apps over USB
from developer options
from my phone settings and it works.
answered Oct 2, 2020 at 13:39
evalsevals
1,5492 gold badges14 silver badges28 bronze badges
0
Allow ‘installing apps from usb’ on your phone if you get this error on physical device
answered Aug 24, 2020 at 17:54
user3166024user3166024
1192 silver badges7 bronze badges
1
This error will appear when your device hasn’t enough storage for installing the application if you work with Flutter, the android studio doesn’t tell the exact problem.
answered Nov 9, 2019 at 15:50
1
For me, everything worked after I deleted the build
directory inside my flutter project.
The build should have the app.apk binary file.
- Delete that file or delete the whole build folder and run your project.
- If that doesn’t work, just delete your AVD emulator completely and start a new one.
answered Mar 7, 2020 at 6:09
eyoeldefareeyoeldefare
2,0261 gold badge15 silver badges25 bronze badges
This problem is mainly due insufficient space because over the time your device collects many logs and cache many stuff.
Try following solutions and one of them could resolve your problem.
Solution 1
Run flutter clean
and flutter pub get
.
Solution 2
Try removing some apps or disable some services from your device/emulator. As last resort you can simply create new emulator with more space and memory.
Solution 3
Make sure your package name is correct and you are following conventions as per Dart/Flutter.
answered Jan 4, 2022 at 15:14
NajamNajam
1,10911 silver badges32 bronze badges
I have been struggling with this off and on for a year, here is what I just noticed that makes it work or not work on my system.
I discovered tonight that if I have my virus protection running my emulator stalls in the
» —> Built buildappoutputsapkdebugapp-debug.apk.
and I just get a white screen. I turn off the virus protection and it works fine in debug mode.
If its on I have to keep going to the terminal and doing: » flutter run » to see any changes I have made.
Maybe this will help someone.
answered Nov 13, 2019 at 3:33
BrianBrian
111 bronze badge
It usually happens with Emulator. Easiest way is to go Andorid Studio > ADB devices. Click on the dropdown arrow on the right side of the emulator name and choose Wipe data.
answered May 9, 2022 at 3:35
ElmarElmar
1,23313 silver badges16 bronze badges
1
Google service scans apk and consider it harmful and block from installation
Disable/ turn off the google service app scan. in your emulator
answered Aug 31, 2020 at 12:59
If you have previously installed apps on your Android Emulator,
Try uninstalling some already installed apps from the Android Emulator by going to…
Settings >> Apps & notifications >> app_to_be_uninstalled >> Uninstall
It worked for me
answered Mar 20, 2021 at 11:53
KalpitKalpit
1611 silver badge5 bronze badges
To debug this, on Android Studio, open the Logcat tab. You will get a ton of messages, but somewhere in there will be the answer.
For example, if the package name is invalid, you will see:
W/ActivityManager: Invalid packageName: your.bad.package.name
Try using the search field in the upper right of the logcat window to filter the messages.
Also, you need to make sure that the device you are working with is selected in the target dropdown at the top of the window. Often, if you get this error, Android Studio will automatically remove your device from the target list and switch it to a different device. You might have to unplug and plug back in your USB cable to get it to appear again. Then select it, and open the Logcat tab at the bottom. The messages from the previous session will be saved and you can look through them.
answered Jun 8, 2021 at 14:30
spekaryspekary
3984 silver badges10 bronze badges
I resolved these issues using these steps .I am using BlueStack Emulator for running Emulator.
Steps:-
- Go to setting of BlueStack Emulator
- Then click on Advance and then
- Turn on Android Debug Bridge (ADB)
I resolved these issues using these steps.
answered Oct 13, 2021 at 12:58
Rahul KushwahaRahul Kushwaha
4,9823 gold badges25 silver badges27 bronze badges
For me, I had the app already installed on the device. Once I deleted it, and then tried to install via adb
again, it worked!
answered Dec 12, 2022 at 14:10
AnshAnsh
791 silver badge9 bronze badges
I fixed my error by running below code lines because Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE] is mentioned in the error
flutter clean
flutter pub cache repair
flutter run
answered Sep 25, 2021 at 20:39
03/11/21
09:10 Gradle sync started
09:21 Gradle sync finished in 10 m 10 s 814 ms
09:21 Android Studio performance could be improved
Increasing the maximum heap size from 1280MB to 2048MB could make the IDE perform better, based on the available memory and your project size.
Use recommended and restart
Configure...
Don't ask for this project
Don't show again
09:21 Adb connection Error:EOF
09:21 Cannot reach ADB server, attempting to reconnect.
09:21 Adb connection Error:EOF
09:21 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:21 Failed to start monitoring 0055421435
09:21 Cannot reach ADB server, attempting to reconnect.
09:21 Adb connection Error:EOF
09:21 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:21 Failed to start monitoring 0055421435
09:21 Cannot reach ADB server, attempting to reconnect.
09:21 Adb connection Error:EOF
09:21 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:21 Failed to start monitoring 0055421435
09:21 Cannot reach ADB server, attempting to reconnect.
09:21 Adb connection Error:EOF
09:21 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:21 Failed to start monitoring 0055421435
09:21 Cannot reach ADB server, attempting to reconnect.
09:21 Adb connection Error:EOF
09:21 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:21 Failed to start monitoring 0055421435
09:21 Cannot reach ADB server, attempting to reconnect.
09:21 Adb connection Error:EOF
09:21 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:21 Cannot reach ADB server, attempting to reconnect.
09:21 Failed to start monitoring 0055421435
09:21 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:21 Adb connection Error:EOF
09:21 Failed to start monitoring 0055421435
09:21 Cannot reach ADB server, attempting to reconnect.
09:21 Adb connection Error:EOF
09:21 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:21 Failed to start monitoring 0055421435
09:21 Cannot reach ADB server, attempting to reconnect.
09:21 Adb connection Error:EOF
09:21 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:21 Failed to start monitoring 0055421435
09:21 Cannot reach ADB server, attempting to reconnect.
09:21 Adb connection Error:EOF
09:21 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:21 Failed to start monitoring 0055421435
09:21 Cannot reach ADB server, attempting to reconnect.
09:21 adb server version (40) doesn't match this client (41); killing...
09:21 * daemon started successfully
09:21 Adb connection Error:EOF
09:21 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:21 Failed to start monitoring 0055421435
09:21 Cannot reach ADB server, attempting to reconnect.
09:21 Adb connection Error:EOF
09:21 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:21 Failed to start monitoring 0055421435
09:21 Cannot reach ADB server, attempting to reconnect.
09:22 Adb connection Error:EOF
09:22 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:22 Failed to start monitoring 0055421435
09:22 Cannot reach ADB server, attempting to reconnect.
09:22 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:22 Failed to start monitoring 0055421435
09:22 Adb connection Error:EOF
09:22 Cannot reach ADB server, attempting to reconnect.
09:22 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:22 Adb connection Error:EOF
09:22 Failed to start monitoring 0055421435
09:22 Cannot reach ADB server, attempting to reconnect.
09:22 * daemon not running; starting now at tcp:5037
09:22 * daemon started successfully
09:22 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:22 Adb connection Error:EOF
09:22 Failed to start monitoring 0055421435
09:22 Cannot reach ADB server, attempting to reconnect.
09:22 * daemon not running; starting now at tcp:5037
09:22 ADB server didn't ACK
09:22 Full server startup log: /var/folders/3n/skqfwm2s5gbghycp0whc507h0000gn/T//adb.501.log
09:22 Server had pid: 3564
09:22 --- adb starting (pid 3564) ---
09:22 adb I 11-03 09:22:17 3564 34464 main.cpp:63] Android Debug Bridge version 1.0.41
09:22 adb I 11-03 09:22:17 3564 34464 main.cpp:63] Version 31.0.3-7562133
09:22 adb I 11-03 09:22:17 3564 34464 main.cpp:63] Installed as /Users/matheus/Library/Android/sdk/platform-tools/adb
09:22 adb I 11-03 09:22:17 3564 34464 main.cpp:63]
09:22 adb E 11-03 09:22:17 3564 34468 usb_osx.cpp:341] Could not open interface: e00002c5
09:22 adb E 11-03 09:22:17 3564 34468 usb_osx.cpp:302] Could not find device interface
09:22 adb I 11-03 09:22:17 3560 34441 auth.cpp:405] adb_auth_init...
09:22 adb I 11-03 09:22:17 3560 34471 transport.cpp:283] 0055421435: read thread spawning
09:22 adb I 11-03 09:22:17 3560 34472 transport.cpp:296] 0055421435: write thread spawning
09:22 adb I 11-03 09:22:17 3560 34441 transport.cpp:1334] fetching keys for transport 0055421435
09:22 adb I 11-03 09:22:17 3560 34441 auth.cpp:457] Calling send_auth_response
09:22 adb I 11-03 09:22:17 3560 34441 adb.cpp:114] 0055421435: offline
09:22 adb F 11-03 09:22:17 3564 34464 main.cpp:160] could not install *smartsocket* listener: Address already in use
09:22 * failed to start daemon
09:22 error: cannot connect to daemon
09:22 '/Users/matheus/Library/Android/sdk/platform-tools/adb start-server' failed -- run manually if necessary
09:22 adb server version (40) doesn't match this client (41); killing...
09:22 Executing tasks: [:app:assembleDebug] in project /Users/matheus/AndroidStudioProjects/MyApplication
09:22 * daemon started successfully
09:22 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:22 Adb connection Error:EOF
09:22 Failed to start monitoring 0055421435
09:22 Cannot reach ADB server, attempting to reconnect.
09:22 * daemon not running; starting now at tcp:5037
09:22 * daemon started successfully
09:22 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:22 Adb connection Error:EOF
09:22 Failed to start monitoring 0055421435
09:22 Cannot reach ADB server, attempting to reconnect.
09:22 Adb connection Error:EOF
09:22 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:22 Cannot reach ADB server, attempting to reconnect.
09:22 Failed to start monitoring 0055421435
09:22 Adb connection Error:EOF
09:22 Cannot reach ADB server, attempting to reconnect.
09:22 Adb connection Error:EOF
09:22 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:22 Cannot reach ADB server, attempting to reconnect.
09:22 Failed to start monitoring 0055421435
09:22 Adb connection Error:EOF
09:22 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:22 Failed to start monitoring 0055421435
09:22 Cannot reach ADB server, attempting to reconnect.
09:22 Adb connection Error:EOF
09:22 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:22 Failed to start monitoring 0055421435
09:22 Cannot reach ADB server, attempting to reconnect.
09:22 Adb connection Error:EOF
09:22 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:22 Cannot reach ADB server, attempting to reconnect.
09:22 Failed to start monitoring 0055421435
09:22 * daemon not running; starting now at tcp:5037
09:22 * daemon started successfully
09:22 Adb connection Error:EOF
09:22 Cannot reach ADB server, attempting to reconnect.
09:22 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:22 Failed to start monitoring 0055421435
09:22 Adb connection Error:EOF
09:22 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:22 Failed to start monitoring 0055421435
09:22 Cannot reach ADB server, attempting to reconnect.
09:23 Adb connection Error:EOF
09:23 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:23 Failed to start monitoring 0055421435
09:23 Cannot reach ADB server, attempting to reconnect.
09:23 Adb connection Error:EOF
09:23 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:23 Failed to start monitoring 0055421435
09:23 Cannot reach ADB server, attempting to reconnect.
09:23 Adb connection Error:EOF
09:23 Cannot reach ADB server, attempting to reconnect.
09:23 Adb connection Error:EOF
09:23 Cannot reach ADB server, attempting to reconnect.
09:23 Adb connection Error:EOF
09:23 Cannot reach ADB server, attempting to reconnect.
09:23 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:23 Failed to start monitoring 0055421435
09:23 * daemon not running; starting now at tcp:5037
09:23 * daemon started successfully
09:23 Adb connection Error:EOF
09:23 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:23 Cannot reach ADB server, attempting to reconnect.
09:23 Failed to start monitoring 0055421435
09:23 Adb connection Error:EOF
09:23 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:23 Failed to start monitoring 0055421435
09:23 Cannot reach ADB server, attempting to reconnect.
09:23 Gradle build finished in 1 m 15 s 354 ms
09:23 Adb connection Error:EOF
09:23 Cannot reach ADB server, attempting to reconnect.
09:23 Adb connection Error:EOF
09:23 Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
09:23 Failed to start monitoring 0055421435
09:23 Cannot reach ADB server, attempting to reconnect.
09:23 Error
Installation did not succeed.
The application could not be installed.
Retry
Содержание
- Error: ADB exited with exit code 1 Performing Streamed Install adb: failed to install C:UsersMLAndroidStudioProjectsi_am_richbuildappoutputsflutter-apkapp.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user] Error launching application on Redmi 8. #65308
- Comments
- Error
- flutter Doctor show no issue
- flutter doctor
- adb: failed to install /Users/snow/test/AndroidStudioProjects/flutter_weather/build/app/outputs/apk/app.apk: #48064
- Comments
- error
- flutter doctor
- ADB exited with exit code 1
- 15 Answers 15
- Error: ADB exited with exit code 1 Performing Streamed Install
- 15 Answers 15
- phenomenon
- Have tried
- Final solution
- Q: how to update adb to latest version
- Forewords
- My Environment
- Troubleshooting
- Solution
Error: ADB exited with exit code 1 Performing Streamed Install adb: failed to install C:UsersMLAndroidStudioProjectsi_am_richbuildappoutputsflutter-apkapp.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user] Error launching application on Redmi 8. #65308
Error
Error: ADB exited with exit code 1 Performing Streamed Install adb: failed to install C:UsersMLAndroidStudioProjectsi_am_richbuildappoutputsflutter-apkapp.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user] Error launching application on Redmi 8.
flutter Doctor show no issue
flutter doctor
C:UsersML>flutter doctor -v
[√] Flutter (Channel stable, 1.20.3, on Microsoft Windows [Version 10.0.18362.1016], locale en-US)
• Flutter version 1.20.3 at C:srcflutter
• Framework revision 216dee6 (4 days ago), 2020-09-01 12:24:47 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
[√] Android toolchain — develop for Android devices (Android SDK version 30.0.2)
• Android SDK at C:UsersMLAppDataLocalAndroidsdk
• Platform android-30, build-tools 30.0.2
• Java binary at: C:Program FilesAndroidAndroid Studiojrebinjava
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Android Studio (version 4.0)
• Android Studio at C:Program FilesAndroidAndroid Studio
• Flutter plugin version 49.0.2
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] Connected device (1 available)
• Redmi 8 (mobile) • c255a8000007 • android-arm64 • Android 10 (API 29)
• No issues found!
The text was updated successfully, but these errors were encountered:
Источник
adb: failed to install /Users/snow/test/AndroidStudioProjects/flutter_weather/build/app/outputs/apk/app.apk: #48064
How does it work ? Only android failed
flutter doctor -v
The text was updated successfully, but these errors were encountered:
Hi @nanyawei
From your flutter doctor -v I can see that connected device is offline.
If it’s a real device, try to
- disconnect it
- turn Off “USB Debugging” and turn it on
- connect the device again
Does it help you?
Thank you
thanks, My .bash_profile profile configuration problem
I’m glad that you fixed the problem,
thank you for letting me know.
I feel safe to close this issue,
if you disagree please write in the comments
and I will reopen it
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install D:Android Studioflut projeflutter_appbuildappoutputsapkapp.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user]
Error launching application on POCO X2.
forgive you tell me how to solve
flutter doctor shows no issue but the error still not gone
error
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install C:UsersMLAndroidStudioProjectsi_am_richbuildappoutputsflutter-apkapp.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user]
Error launching application on Redmi 8.
flutter doctor
C:UsersML>flutter doctor -v
[√] Flutter (Channel stable, 1.20.3, on Microsoft Windows [Version 10.0.18362.1016], locale en-US)
• Flutter version 1.20.3 at C:srcflutter
• Framework revision 216dee6 (4 days ago), 2020-09-01 12:24:47 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
[√] Android toolchain — develop for Android devices (Android SDK version 30.0.2)
• Android SDK at C:UsersMLAppDataLocalAndroidsdk
• Platform android-30, build-tools 30.0.2
• Java binary at: C:Program FilesAndroidAndroid Studiojrebinjava
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Android Studio (version 4.0)
• Android Studio at C:Program FilesAndroidAndroid Studio
• Flutter plugin version 49.0.2
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] Connected device (1 available)
• Redmi 8 (mobile) • c255a8000007 • android-arm64 • Android 10 (API 29)
Источник
ADB exited with exit code 1
I’m getting the following error when running my flutter project on Android Emulator. It works fine on iOS Simulator and the project is also fine on my other Mac (runs on both Android and iOS Simulator)
Error: ADB exited with exit code 1 Performing Streamed Install
adb: failed to install /Users/xxxx/Dropbox/Flutter/test_app/build/app/outputs/apk/app.apk: Error launching application on Android SDK built for x86.
I’ve cleaned my project and reset my emulator but no luck. It only affects my mac book pro android build.
Flutter doctor also shows no issues
15 Answers 15
I know two reasons that lead to this error :
- Maybe your device/emulator’s storage is full. try deleting some apps or similar to free up storage.
- Invalid package name . for example, using a capital letter in the package name. use this to change package name in flutter
FAST SOLUTION (worth trying quickly before attempting more complex solutions):
Run the command flutter clean (Cleans out your build/dependencies)
Then run the command flutter pub get (Gets your dependencies again)
Now try running your project!
for my phone (not emulator) i disabled Verify apps over USB from developer options from my phone settings and it works.
Allow ‘installing apps from usb’ on your phone if you get this error on physical device
This error will appear when your device hasn’t enough storage for installing the application if you work with Flutter, the android studio doesn’t tell the exact problem.
For me, everything worked after I deleted the build directory inside my flutter project. The build should have the app.apk binary file.
- Delete that file or delete the whole build folder and run your project.
- If that doesn’t work, just delete your AVD emulator completely and start a new one.
This problem is mainly due insufficient space because over the time your device collects many logs and cache many stuff.
Try following solutions and one of them could resolve your problem.
Solution 1
Run flutter clean and flutter pub get .
Solution 2
Try removing some apps or disable some services from your device/emulator. As last resort you can simply create new emulator with more space and memory.
Solution 3
Make sure your package name is correct and you are following conventions as per Dart/Flutter.
I have been struggling with this off and on for a year, here is what I just noticed that makes it work or not work on my system.
I discovered tonight that if I have my virus protection running my emulator stalls in the
» —> Built buildappoutputsapkdebugapp-debug.apk. and I just get a white screen. I turn off the virus protection and it works fine in debug mode. If its on I have to keep going to the terminal and doing: » flutter run » to see any changes I have made. Maybe this will help someone.
It usually happens with Emulator. Easiest way is to go Andorid Studio > ADB devices. Click on the dropdown arrow on the right side of the emulator name and choose Wipe data.
Google service scans apk and consider it harmful and block from installation
Disable/ turn off the google service app scan. in your emulator
If you have previously installed apps on your Android Emulator,
Try uninstalling some already installed apps from the Android Emulator by going to.
Settings >> Apps & notifications >> app_to_be_uninstalled >> Uninstall
It worked for me 🙂
To debug this, on Android Studio, open the Logcat tab. You will get a ton of messages, but somewhere in there will be the answer.
For example, if the package name is invalid, you will see:
Try using the search field in the upper right of the logcat window to filter the messages.
Also, you need to make sure that the device you are working with is selected in the target dropdown at the top of the window. Often, if you get this error, Android Studio will automatically remove your device from the target list and switch it to a different device. You might have to unplug and plug back in your USB cable to get it to appear again. Then select it, and open the Logcat tab at the bottom. The messages from the previous session will be saved and you can look through them.
Источник
Error: ADB exited with exit code 1 Performing Streamed Install
I’m receiving the following error while running flutter run on some projects, however, on other projects it works fine:
It’s just the flutter demo project, I haven’t made any changes to it.
15 Answers 15
Actually, the answer lies in the error message of your question:
[ADB: failed to install /Users/rahama/development/flutter_uber_clone/build/app/outputs/apk/app.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE] Error launching the application on Android SDK built for x86.]
Your Emulator is running out of space, clear its cache:
- Click on AVD Manager
- Wipe Data (Your Target Device )
You are set to go..
Flutter had a new update (I think last night), run flutter upgrade in the terminal and it should work fine (at least that did it for me).
Docs: To update both the Flutter SDK and the packages that your app depends on, use the flutter upgrade command from the root of your app (the same directory that contains the pubspec.yaml file)
Run in terminal
Although I don’t have any other apps installed on my emulator, when I install the flutter app, I get the same error.
I found that the storage space of the emulator is indeed not enough. Because when I created the emulator, the default was only 1024M. When I changed the storage space of the emulator to 4096M, the problem was solved.
In my case, it was caused by an adb glitch, not a flutter problem.
This was solved by doing a combination of the following, not sure which step fixed it exactly
- Reset adb server on desktop, macOS in mycase: adb kill-server , and then adb start-server
- Reset USB debugging on the mobile device.
- Restarted the device.
None of the existing answers worked for me, so it wasn’t a flutter problem. A plain adb install any.apk didn’t work. So I narrowed it down to an adb/usb issue.
this common problem with the Emulator and all you need to clear the Emulator cache . in my case it was the solution.
1- open AVD Manger.
2- click on the (bottom arrow) that beside (Edit) button.
3- choose Wipe Data.
Sometimes it can work by uninstalling your app and and all it’s data then try again,
another fix is to send the apk you are trying to install from projectname/build/app/outputs/apk and to your device and install it and try again.
Note: Following is answer for stuck at Performing Streamed Install by adb install xxx.apk :
phenomenon
use adb install xxx.apk and showing Performing Streamed Install but stuck, hang forever.
Have tried
- re-plug USB cable
- change USB adapter
- change USB cable
- reboot PC(Mac)
- reboot android phone
- restart VSCode
- make adb command shorter
- from: adb -s hxxxxxxxxs install -r /Users/limao/dev/xxx/crawler/appAutoCrawler/AppCrawler/task/20201202_xxx_0192LeiMoChuanShuo/20201202_xxx_0192LeiMoChuanShuo_gameApp_Android/20201202_xxx_0192LeiMoChuanShuo_gameApp_Android_0.apk
- to: adb -s hxxxxxxxxs install -r /var/folders/gt/5868sbcd1jq4rxvryqhy2_1sz8n0s3/T/tmpq3ypjfgd/20201202_xxx_0192LeiMoChuanShuo_gameApp_Android_0.apk
- tried adb shell pm install but not support
- etc.
Final solution
update (original old version 29.0.5 ) adb to latest version ( 30.0.5 )
Q: how to update adb to latest version
to download your platform adb
- 下载适用于 Windows 的 SDK Platform-Tools
- 下载适用于 Mac 的 SDK Platform-Tools
- 下载适用于 Linux 的 SDK Platform-Tools
unzip to got folder platform-tools
add the folder to your PATH variable
In my case, this was resolved by updating android studio and all the flutter and dart plugins.
Go to File>> invalidate caches
By this way I resolved this issues on BlueStack.Do these steps for running android applications on BlueStack Emulator.
I experienced this same problem on a physical device, tried all solution i could see out there but none worked.
What worked at the end of the day was to ensure my device API version was also installed in the android studio.
Forewords
This question gets the first result from Google, so my answer covers a bit different error.
The error in question has [INSTALL_FAILED_INSUFFICIENT_STORAGE] code. My answer is for any Performing Streamed Install error that does not specifically define [INSTALL_FAILED_INSUFFICIENT_STORAGE] code.
My Environment
- KDE Neon 5.24 (a.k.a. Ubuntu 20.04 but latest KDE stuff)
- Visual Studio Code from Snap (I use this mainly)
- Android Studio from Snap (I use this to install SDK, Platform Tools and Build Tools)
Troubleshooting
The problem is this globally installed /usr/bin/adb overrides the adb that Flutter uses. As you know, Ubuntu has many outdated packages (to protect their system’s stability). ADB is one of them. So, if you try to do:
You will highly likely get an output similar to below:
In some flutter run sessions, I’ve got an output similar to «adb server version (whatever) does not match the client (whatever); killing». That’s when I had the doubt maybe I have installed adb globally. Check this:
So, we use an outdated version of adb , which does not match the target device’s adb server.
Solution
So, we need to get rid of this global adb first.
If you use adb from terminal, what we are going to do will remove it. You can add your /platform-tools where SDK PATH is where you have installed SDK to get it back.
However, doing these actually does not remove adb from the system. It still lays there for some reason, so, for the last step, we do:
After these steps, you can restart your editor and try again. If you want to make double sure, you can optionally do (while your editor’s closed):
Источник
score:0
Google service scans apk and consider it harmful and block from installation
Disable/ turn off the google service app scan. in your emulator
score:0
If you have previously installed apps on your Android Emulator,
Try uninstalling some already installed apps from the Android Emulator by going to…
Settings >> Apps & notifications >> app_to_be_uninstalled >> Uninstall
It worked for me
score:0
To debug this, on Android Studio, open the Logcat tab. You will get a ton of messages, but somewhere in there will be the answer.
For example, if the package name is invalid, you will see:
W/ActivityManager: Invalid packageName: your.bad.package.name
Try using the search field in the upper right of the logcat window to filter the messages.
Also, you need to make sure that the device you are working with is selected in the target dropdown at the top of the window. Often, if you get this error, Android Studio will automatically remove your device from the target list and switch it to a different device. You might have to unplug and plug back in your USB cable to get it to appear again. Then select it, and open the Logcat tab at the bottom. The messages from the previous session will be saved and you can look through them.
score:0
I fixed my error by running below code lines because Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE] is mentioned in the error
- flutter clean
- flutter pub cache repair
- flutter run
score:0
I resolved these issues using these steps .I am using BlueStack Emulator for running Emulator.
Steps:-
- Go to setting of BlueStack Emulator
- Then click on Advance and then
- Turn on Android Debug Bridge (ADB)
I resolved these issues using these steps.
score:0
It usually happens with Emulator. Easiest way is to go Andorid Studio > ADB devices. Click on the dropdown arrow on the right side of the emulator name and choose Wipe data.
score:1
I have been struggling with this off and on for a year, here is what I just noticed that makes it work or not work on my system.
I discovered tonight that if I have my virus protection running my emulator stalls in the
» —> Built buildappoutputsapkdebugapp-debug.apk.
and I just get a white screen. I turn off the virus protection and it works fine in debug mode.
If its on I have to keep going to the terminal and doing: » flutter run » to see any changes I have made.
Maybe this will help someone.
score:1
This problem is mainly due insufficient space because over the time your device collects many logs and cache many stuff.
Try following solutions and one of them could resolve your problem.
Solution 1
Run flutter clean
and flutter pub get
.
Solution 2
Try removing some apps or disable some services from your device/emulator. As last resort you can simply create new emulator with more space and memory.
Solution 3
Make sure your package name is correct and you are following conventions as per Dart/Flutter.
score:6
For me, everything worked after I deleted the build
directory inside my flutter project.
The build should have the app.apk binary file.
- Delete that file or delete the whole build folder and run your project.
- If that doesn’t work, just delete your AVD emulator completely and start a new one.
score:9
Allow ‘installing apps from usb’ on your phone if you get this error on physical device
score:10
This error will appear when your device hasn’t enough storage for installing the application if you work with Flutter, the android studio doesn’t tell the exact problem.
score:14
for my phone (not emulator) i disabled Verify apps over USB
from developer options
from my phone settings and it works.
score:21
FAST SOLUTION (worth trying quickly before attempting more complex solutions):
run the command flutter clean
score:52
I know two reason that lead to this error :
- Maybe your device/emulator’s storage is full. Try deleting some apps
or similar to free up storage.
Or
- Invalid package name . for example using capital letter in package name. use this to change package name in flutter
Related Query
- ADB exited with exit code 1
- Error: ADB exited with exit code 1 Performing Streamed Install
- cmd: Can’t find service: activity #Error: ADB exited with exit code 1 in flutter
- Why do I get the Error: ADB exited with exit code 1
- FLUTTER ERROR :Error: ADB exited with exit code 1
- Error: ADB exited with exit code 1 Performing Streamed Install adb: failed to install Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED:
- Error: ADB exited with exit code 1 Performing Streamed Install with Flutter and Mac Big Sur with M1
- Error: ADB exited with exit code 1 Failure [INSTALL_FAILED_VERSION_DOWNGRADE]
- Error: ADB exited with exit code 1 Performing Streamed Install and error related to running abd
- Error: ADB exited with exit code 1 — remedy?
- Flutter ADB error: ADB exited with exit code 1 performing streamed install
- flutter:Exception: Gradle task assembleDebug failed with exit code 1 Exited (sigterm)
- Failed to start DevTools: Dart DevTools exited with code 255
- Command PhaseScriptExecution failed with a nonzero exit code while trying to add Flutter to iOS app
- Finished with error: Gradle task assembleDebug failed with exit code 1
- Gradle threw an error while downloading artifacts from the network .. Exception: Gradle task assembleDebug failed with exit code 1
- Flutter run — Failed to build iOS app — Command PhaseScriptExecution failed with a nonzero exit code
- Flutter Gradle task assembleDebug failed with exit code 1 zip END header not found
- Flutter — iOS: Command /bin/sh failed with exit code 255
- Flutter: Command PhaseScriptExecution failed with a nonzero exit code
- How to resolve «Exception: Gradle task assembleDebug failed with exit code 1»?
- Flutter flutter_launcher_icons error: pub finished with exit code 255
- Flutter Xcode: clang: error: linker command failed with exit code 1 (use -v to see invocation)
- How to fix Command PhaseScriptExecution failed with a nonzero exit code on flutter run in macOS?
- Flutter — Command PhaseScriptExecution failed with a nonzero exit code
- Flutter build runner — pub finished with exit code 65
- Flutter: error Xcode: command PhaseScriptExecution failed with a nonzero exit code
- Flutter Android — Gradle task bundleRelease failed with exit code 1
- Command PhaseScriptExecution failed with a nonzero exit code (Flutter)
- Unbound Variable Command PhaseScriptExecution failed with a nonzero exit code
More Query from same tag
- Issue with initializing. How can I convert something like this to a static member? if that’s what I need to do
- Flutter Flatbutton onpressed not working while trying to open phone dialer
- Interpolar animation in google maps for flutter
- Flutter Web Sign in with Apple returning unknown exception
- Text selection index was clamped (-1->0) to remain in bounds. This may not be your fault, as some keyboards may select outside of bounds
- Flutter: Why are navigators being reset when added to tree?
- Flutter open facebook link in facebook app android & ios
- How to use Stack and listview together flutter
- The following FormatException was thrown building Builder(dirty): FormatException in flutter
- In flutter how to navigate to specific home page based on the type of user logged in?
- How can I get the size of the Text widget in Flutter
- Converting a forEach loop to a Future.forEach loop in Flutter
- TextFormField inside ExpansionTile loses data when ExpansionTile collapses in Flutter
- Firestore : an issue in structuring a chat app
- Do I need APNs certificates if I’m using APNs Auth Key?
- I want to use value from async function in Text widget
- How to change the width to the CupertinoSlidingSegmentedControl in Flutter
- Flutter + Firebase: How to set state on bool value in documents
- How do parse json to object and use in another class
- Changing The Text Color Of Cupertino Date Picker
- How to pass a GlobalKey field from one class to another?
- How to use timer in flutter app for changing data?
- How make the StatusBar transparent for Android in Flutter
- how to disable scrolling NestedScrollView
- OneSignal doesn’t open my flutter app on click [Android ONLY]
- Flutter: How can I retrieve the text from a TextEditingController in a custom StatefulWidget?
- Handling firebase authentication errors Flutter
- Flutter — returning UploadTask returns TaskSnapshot instead
- Am stuck at running gradle task «assembledebug»
- Flutter Socket io Error on WebSocketException: Connection to was not upgraded to websocket
Solved: Debug Console: Error: ADB exited with exit code 1 Performing Streamed Install… F
Question
Asked by Harun B on June 28, 2022 (source).
I am trying to run app on Android Emulator and it’s saying that INSTALL_FAILED_INSUFFICIENT_STORAGE] but when I wipe data from AVD and restart VS Code and try again, sam error.. Sometimes I go flutter clean
and flutter pub get
and sometimes work but sometimes don’t. I tried to do every solution that people posted previously in their similar problems but solutions don’t work. When I use Windows10 on my PC I am not having this problem but on my Mackbook Air 2020 I am facing this on all projects. P.S This is new project(blank template).
flutter run
Using hardware rendering with device sdk gphone64 arm64. If you
notice graphics artifacts, consider enabling software rendering
with "--enable-software-rendering".
Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
Running Gradle task 'assembleDebug'... 12.9s
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app.apk... 689ms
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install
/Users/harunbegic/Desktop/dev/flutter/login_authh/build/app/outp
uts/flutter-apk/app.apk: Failure
[INSTALL_FAILED_INSUFFICIENT_STORAGE]
Error launching application on sdk gphone64 arm64. ```
Answer
Question answered by Harun B (source).
So I found the solution:
-
Open Android Studio
-
Open Virtual Device Manager
-
Find your emulator and go Edit(Virtual Device Configuration)
-
Show Advanced Settings
-
Scroll down and find Interal Storage(for me it was by default 800MB)
-
Set how many MB you want to emulator have ( I putted 6000MB and it works fine)
Hope it helps!
P.S It may take some time to emulator reloads after changes! Be patient
- Source: Stackoverflow.com
Issue
I’m receiving the following error while running flutter run
on some projects, however, on other projects it works fine:
(base) Nusraths-MacBook-Pro:flutter_uber_clone rahama$ flutter emulators --launch Pixel_2_XL_API_28
(base) Nusraths-MacBook-Pro:flutter_uber_clone rahama$ flutter run
Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing Gradle... 0.8s
Resolving dependencies... 1.4s
Running Gradle task 'assembly debug'...
Running Gradle task 'assembly debug'... Done 9.3s
Built build/app/outputs/apk/debug/app-debug.apk.
Installing build/app/outputs/apk/app.apk... 1.9s
Error: ADB exited with exit code 1
Performing Streamed Install
ADB: failed to install /Users/rahama/development/flutter_uber_clone/build/app/outputs/apk/app.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
Error launching the application on Android SDK built for x86.
It’s just the flutter demo project, I haven’t made any changes to it.
Solution
Flutter had a new update (I think last night), run flutter upgrade
in the terminal and it should work fine (at least that did it for me).
Docs:
To update both the Flutter SDK and the packages that your app depends on, use the flutter upgrade
command from the root of your app (the same directory that contains the pubspec.yaml file)
https://flutter.dev/docs/development/tools/sdk/upgrading
Answered By — meetingthespam
adb: failed to install /Users/snow/test/AndroidStudioProjects/flutter_weather/build/app/outputs/apk/app.apk: #48064
Comments
nanyawei commented Jan 2, 2020
How does it work ? Only android failed
flutter doctor -v
The text was updated successfully, but these errors were encountered:
VladyslavBondarenko commented Jan 2, 2020
Hi @nanyawei
From your flutter doctor -v I can see that connected device is offline.
If it’s a real device, try to
- disconnect it
- turn Off “USB Debugging” and turn it on
- connect the device again
Does it help you?
Thank you
nanyawei commented Jan 3, 2020
thanks, My .bash_profile profile configuration problem
VladyslavBondarenko commented Jan 3, 2020
I’m glad that you fixed the problem,
thank you for letting me know.
I feel safe to close this issue,
if you disagree please write in the comments
and I will reopen it
timka2106 commented Apr 24, 2020
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install D:Android Studioflut projeflutter_appbuildappoutputsapkapp.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user]
Error launching application on POCO X2.
forgive you tell me how to solve
AqeelTariq97 commented Sep 5, 2020 •
flutter doctor shows no issue but the error still not gone
error
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install C:UsersMLAndroidStudioProjectsi_am_richbuildappoutputsflutter-apkapp.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user]
Error launching application on Redmi 8.
flutter doctor
C:UsersML>flutter doctor -v
[√] Flutter (Channel stable, 1.20.3, on Microsoft Windows [Version 10.0.18362.1016], locale en-US)
• Flutter version 1.20.3 at C:srcflutter
• Framework revision 216dee6 (4 days ago), 2020-09-01 12:24:47 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
[√] Android toolchain — develop for Android devices (Android SDK version 30.0.2)
• Android SDK at C:UsersMLAppDataLocalAndroidsdk
• Platform android-30, build-tools 30.0.2
• Java binary at: C:Program FilesAndroidAndroid Studiojrebinjava
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Android Studio (version 4.0)
• Android Studio at C:Program FilesAndroidAndroid Studio
• Flutter plugin version 49.0.2
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] Connected device (1 available)
• Redmi 8 (mobile) • c255a8000007 • android-arm64 • Android 10 (API 29)
Источник
Error: ADB exited with exit code 1 Performing Streamed Install adb: failed to install C:UsersMLAndroidStudioProjectsi_am_richbuildappoutputsflutter-apkapp.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user] Error launching application on Redmi 8. #65308
Comments
AqeelTariq97 commented Sep 6, 2020 •
Error
Error: ADB exited with exit code 1 Performing Streamed Install adb: failed to install C:UsersMLAndroidStudioProjectsi_am_richbuildappoutputsflutter-apkapp.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user] Error launching application on Redmi 8.
flutter Doctor show no issue
flutter doctor
C:UsersML>flutter doctor -v
[√] Flutter (Channel stable, 1.20.3, on Microsoft Windows [Version 10.0.18362.1016], locale en-US)
• Flutter version 1.20.3 at C:srcflutter
• Framework revision 216dee6 (4 days ago), 2020-09-01 12:24:47 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
[√] Android toolchain — develop for Android devices (Android SDK version 30.0.2)
• Android SDK at C:UsersMLAppDataLocalAndroidsdk
• Platform android-30, build-tools 30.0.2
• Java binary at: C:Program FilesAndroidAndroid Studiojrebinjava
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Android Studio (version 4.0)
• Android Studio at C:Program FilesAndroidAndroid Studio
• Flutter plugin version 49.0.2
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] Connected device (1 available)
• Redmi 8 (mobile) • c255a8000007 • android-arm64 • Android 10 (API 29)
• No issues found!
The text was updated successfully, but these errors were encountered:
Источник
Error: ADB exited with exit code 1 #52887
Comments
Vuyisile619 commented Mar 19, 2020 •
Hey guys. when i try running a flutter project i get this error from my cmd
Please help what could be the problem
The text was updated successfully, but these errors were encountered:
VladyslavBondarenko commented Mar 19, 2020
Hi @Vuyisile619
Do workarounds from #34001 help you?
VladyslavBondarenko commented Mar 20, 2020 •
@VladyslavBondarenko hie thanks for the response.Well it did kind of help i wiped out the data from the virtual device and it started working but when i hit flutter run, the virtual device would freeze or just stop itself and then the logs would end like this
C:AndroidStudioProjectsflutterapptest_project>flutter run
Using hardware rendering with device AOSP on IA Emulator. If you get graphics artifacts, consider enabling software
rendering with «—enable-software-rendering».
Launching libmain.dart on AOSP on IA Emulator in debug mode.
Running Gradle task ‘assembleDebug’.
Running Gradle task ‘assembleDebug’. Done 1260,5s (!)
√ Built buildappoutputsapkdebugapp-debug.apk.
Installing buildappoutputsapkapp.apk.
167,2s (!)
D/FlutterActivity( 5482): Using the launch theme as normal theme.
D/FlutterActivityAndFragmentDelegate( 5482): Setting up FlutterEngine.
D/FlutterActivityAndFragmentDelegate( 5482): No preferred FlutterEngine was provided. Creating a new FlutterEngine for this FlutterFragment.
Flutter is taking longer than expected to report its views. Still trying.
Syncing files to device AOSP on IA Emulator.
D/FlutterActivityAndFragmentDelegate( 5482): Attaching FlutterEngine to the Activity that owns this Fragment.
D/OpenGLRenderer( 5482): Skia GL Pipeline
D/FlutterView( 5482): Attaching to a FlutterEngine: io.flutter.embedding.engine.FlutterEngine@244933f
W/le.test_projec( 5482): Accessing hidden method Landroid/view/accessibility/AccessibilityNodeInfo;->getSourceNodeId()J (light greylist, reflection)
W/le.test_projec( 5482): Accessing hidden method Landroid/view/accessibility/AccessibilityRecord;->getSourceNodeId()J (light greylist, reflection)
W/le.test_projec( 5482): Accessing hidden field Landroid/view/accessibility/AccessibilityNodeInfo;->mChildNodeIds:Landroid/util/LongArray; (light greylist, reflection)
W/le.test_projec( 5482): Accessing hidden method Landroid/util/LongArray;->get(I)J (light greylist, reflection)
D/FlutterActivityAndFragmentDelegate( 5482): Executing Dart entrypoint: main, and sending initial route: /
I/Choreographer( 5482): Skipped 302 frames! The application may be doing too much work on its main thread.
I/OpenGLRenderer( 5482): Initialized EGL, version 1.4
D/OpenGLRenderer( 5482): Swap behavior 1
D/HostConnection( 5482): HostConnection::get() New Host Connection established 0xe2b70150, tid 5863
D/HostConnection( 5482): HostConnection::get() New Host Connection established 0xe57a1140, tid 5503
D/HostConnection( 5482): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_1
D/HostConnection( 5482): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_1
W/OpenGLRenderer( 5482): Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without.
D/OpenGLRenderer( 5482): Swap behavior 0
D/eglCodecCommon( 5482): setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation( 5482): eglCreateContext: 0xe57851e0: maj 3 min 1 rcv 4
D/eglCodecCommon( 5482): setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation( 5482): eglCreateContext: 0xe3d32a00: maj 3 min 1 rcv 4
D/EGL_emulation( 5482): eglMakeCurrent: 0xe3d32a00: ver 3 1 (tinfo 0xe3d7c670)
E/eglCodecCommon( 5482): glUtilsParamSize: unknow param 0x000082da
E/eglCodecCommon( 5482): glUtilsParamSize: unknow param 0x000082da
D/HostConnection( 5482): createUnique: call
D/HostConnection( 5482): HostConnection::get() New Host Connection established 0xe57a1190, tid 5503
E/eglCodecCommon( 5482): GoldfishAddressSpaceHostMemoryAllocator: ioctl_ping failed for device_type=5, ret=-1
D/HostConnection( 5482): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_1
D/EGL_emulation( 5482): eglMakeCurrent: 0xe57851e0: ver 3 1 (tinfo 0xe57836f0)
E/eglCodecCommon( 5482): glUtilsParamSize: unknow param 0x000082da
E/eglCodecCommon( 5482): glUtilsParamSize: unknow param 0x000082da
I/Choreographer( 5482): Skipped 1683 frames! The application may be doing too much work on its main thread.
D/EGL_emulation( 5482): eglMakeCurrent: 0xe3d32a00: ver 3 1 (tinfo 0xe3d7c670)
D/eglCodecCommon( 5482): setVertexArrayObject: set vao to 0 (0) 1 2
I/OpenGLRenderer( 5482): Davey! duration=134875ms; Flags=1, IntendedVsync=2243599484209, Vsync=2271649483087, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=2271653219400, AnimationStart=2271653292800, PerformTraversalsStart=2271653312800, DrawStart=2271659659500, SyncQueued=2293522279700, SyncStart=2294562086000, IssueDrawCommandsStart=2294562257900, SwapBuffers=2365554445600, FrameCompleted=2379515031400, DequeueBufferDuration=4473659000, QueueBufferDuration=1135000,
I/Choreographer( 5482): Skipped 2571 frames! The application may be doing too much work on its main thread.
I/OpenGLRenderer( 5482): Davey! duration=66801ms; Flags=0, IntendedVsync=2409835137997, Vsync=2452685136283, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=2452697355600, AnimationStart=2452697499900, PerformTraversalsStart=2452701819700, DrawStart=2452709301600, SyncQueued=2452709346300, SyncStart=2452709472100, IssueDrawCommandsStart=2452709657600, SwapBuffers=2452710154400, FrameCompleted=2476637233900, DequeueBufferDuration=23705921000, QueueBufferDuration=7549000,
D/EGL_emulation( 5482): eglMakeCurrent: 0xe57851e0: ver 3 1 (tinfo 0xe57836f0)
D/eglCodecCommon( 5482): setVertexArrayObject: set vao to 0 (0) 1 0
I/Choreographer( 5482): Skipped 116 frames! The application may be doing too much work on its main thread.
Lost connection to device.
Syncing files to device AOSP on IA Emulator.
C:AndroidStudioProjectsflutterapptest_project>
@Vuyisile619 let’s keep conversation in your issue.
Could you provide your flutter doctor -v and flutter run —verbose ?
Источник
Ошибка: выход из ADB с кодом выхода 1. Выполнение потоковой установки
Я получаю следующую ошибку при запуске flutter run в некоторых проектах, однако в других проектах все работает нормально:
Это просто демонстрационный проект флаттера, я не вносил в него никаких изменений.
В настройках -> Отладчик -> под Java я изменил, чтобы немедленно убить процесс отладки. он начинает работать нормально.
В моем случае я настраивал свое новое устройство Samsung S21. Я установил драйвер, включил отладку, перезагрузил ноутбук и мобильный телефон и т. д. Но все равно получил эту ошибку. Проблема решилась просто заменой порта USB на подключение по кабелю. Это забавно, потому что этот USB-порт на 100% исправен, мое старое Android-устройство работает нормально, когда оно подключено к этому USB-порту.
У Flutter было новое обновление (кажется, прошлой ночью), запустите flutter upgrade в терминале, и он должен работать нормально (по крайней мере, у меня так получилось).
Документы: Чтобы обновить как Flutter SDK, так и пакеты, от которых зависит ваше приложение, используйте команду flutter upgrade из корня вашего приложения (тот же каталог, в котором находится файл pubspec.yaml).
Собственно, ответ кроется в сообщении об ошибке вашего вопроса:
[ADB: failed to install /Users/rahama/development/flutter_uber_clone/build/app/outputs/apk/app.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE] Error launching the application on Android SDK built for x86.]
В вашем эмуляторе заканчивается место, очистите его кеш:
- Нажмите на AVD-менеджер
- Стереть данные (ваше целевое устройство)
Вы настроены идти..
Mohammad Anwer Moin
В моем случае это было вызвано глюком adb, а не проблемой флаттера.
Это было решено путем выполнения комбинации следующего, не уверенного, какой именно шаг исправил это
- Сбросить сервер adb на рабочем столе, macOS в моем случае: adb kill-server , а затем adb start-server
- Сбросьте отладку по USB на мобильном устройстве.
- Перезагрузил устройство.
Ни один из существующих ответов не работал у меня, так что это не было проблемой флаттера. Простой adb install any.apk не сработал. Поэтому я сузил его до проблемы adb/usb.
Примечание. Ниже приведен ответ для stuck at Performing Streamed Install от adb install xxx.apk :
явление
использовать adb install xxx.apk и показывать Performing Streamed Install , но застрял, зависнуть навсегда.
Попробовал
- повторно подключите USB-кабель
- поменять USB-адаптер
- сменить USB-кабель
- перезагрузить ПК (Mac)
- перезагрузить андроид телефон
- перезапустить VSCode
- сделать команду adb короче
- от: adb -s hxxxxxxxxs install -r /Users/limao/dev/xxx/crawler/appAutoCrawler/AppCrawler/task/20201202_xxx_0192LeiMoChuanShuo/20201202_xxx_0192LeiMoChuanShuo_gameApp_Android/20201202_xxx_0192LeiMoChuanShuo_gameApp_Android_0.apk
- кому: adb -s hxxxxxxxxs install -r /var/folders/gt/5868sbcd1jq4rxvryqhy2_1sz8n0s3/T/tmpq3ypjfgd/20201202_xxx_0192LeiMoChuanShuo_gameApp_Android_0.apk
- пытался adb shell pm install но не поддерживает
- так далее.
все не работают.
Окончательное решение
обновить (исходная старая версия 29.0.5 ) adb до последней версии ( 30.0.5 )
В: как обновить adb до последней версии
скачать вашу платформу adb
- 下载适用于 Windows 的 SDK Platform-Tools
- 下载适用于 Mac 的 SDK Platform-Tools
- 下载适用于 Linux 的 SDK Platform-Tools
распаковать в полученную папку platform-tools
добавьте папку в свою переменную PATH
В моем случае это было решено путем обновления студии Android и всех плагинов флаттера и дротика.
Перейдите в Файл >> аннулировать кеши
это общая проблема с эмулятором и все, что вам нужно, чтобы очистить кеш эмулятора. в моем случае это было решением.
1- открыть AVD Manger.
2- нажмите на (нижняя стрелка) рядом с кнопкой (Редактировать).
3- выберите «Стереть данные».
У меня была такая же проблема с физическим устройством, подключенным через Wi-Fi, тогда я понял, что не так. Батарея моего устройства была ниже 15%, после зарядки он работал как положено. Итак, следите за состоянием батареи, если вы работаете с физическим устройством через Wi-Fi.
Иногда это может работать с удаление вашего приложения и со всеми его данными, затем попробуйте еще раз,
другое исправление касается отправить апк, который вы пытаетесь установить из projectname/build/app/outputs/apk и на свое устройство и установите его и повторите попытку.
Abdelrahman M. Elmarakby
Запустить в терминале
Таким образом я решил эту проблему в BlueStack..Выполните следующие действия для запуска приложений Android в эмуляторе BlueStack.
Я столкнулся с той же проблемой на физическом устройстве, попробовал все решения, которые я мог там увидеть, но ни одно из них не сработало.
Что сработало в конце дня, так это убедиться, что версия API моего устройства также была установлена в студии Android.
Если у вас есть новый вопрос, задайте его, нажав кнопку Задать вопрос. Включите ссылку на этот вопрос, если это помогает обеспечить контекст. — Из обзора
Предисловие
Этот вопрос получает первый результат от Google, поэтому мой ответ касается немного другой ошибки.
Рассматриваемая ошибка имеет код [INSTALL_FAILED_INSUFFICIENT_STORAGE] . Мой ответ для любой Performing Streamed Install ошибки, которая специально не определяет [INSTALL_FAILED_INSUFFICIENT_STORAGE] код.
Моя среда
- KDE Neon 5.24 (он же Ubuntu 20.04, но последняя версия KDE)
- Код Visual Studio от Snap (в основном я использую это)
- Android Studio от Snap (я использую это для установки SDK, Platform Tools и Build Tools)
Поиск проблемы
Проблема в том, что этот глобально установленный /usr/bin/adb переопределяет adb , который использует Flutter. Как вы знаете, в Ubuntu есть много устаревших пакетов (чтобы защитить стабильность своей системы). АБР — один из них. Итак, если вы попытаетесь сделать:
Скорее всего, вы получите вывод, подобный приведенному ниже:
В некоторых сеансах flutter run я получаю вывод, похожий на «версия сервера adb (независимо) не соответствует клиенту (независимо); убийство». Вот тогда я засомневался, может быть, я установил adb глобально. Проверь это:
Итак, мы используем устаревшую версию adb , которая не соответствует серверу adb целевого устройства.
Решение
Итак, нам нужно сначала избавиться от этого глобального adb .
If you use adb from terminal, what we are going to do will remove it. You can add your /platform-tools where SDK PATH is where you have installed SDK to get it back.
Однако на самом деле это не удаляет adb из системы. По какой-то причине он все еще лежит там, поэтому для последнего шага мы делаем:
После этих шагов вы можете перезапустить редактор и повторить попытку. Если вы хотите дважды убедиться, вы можете сделать (пока ваш редактор закрыт):
Источник
First of all:
Yes, I have read countless threads for hours on the issue presented in the title here and related issues.
On running my very first example app with Android Studio on Windows 10, I get the exact output:
Initializing gradle…
Resolving dependencies…
Running Gradle task ‘assembleDebug’…
Built buildappoutputsapkdebugapp-debug.apk.
error: closed
Installing buildappoutputsapkapp.apk…
Error: ADB exited with exit code 1
Performing Streamed Install
adb: connect error for write: closed
Error launching application on SM G955F.
To fix this issue, I have tried solutions from all threads I could find. Amongst others I have:
- Restarted Android Studio and run as administrator
- Deleted the ‘idea’ folder and reopened the project
I have tried everything to create a new virtual device, but I can’t make that available to my project — the button is greyed out.
zx485
2,17011 gold badges16 silver badges23 bronze badges
asked Sep 24, 2019 at 15:12
After having tried a range of suggested solutions from stack threads, what made the difference was restarting my Win 10 system.
Android Studio still doesn’t seem to run stable and sometimes the option to choose a virtual machine is greyed out. But at first run after a reboot I was able to choose the two virtual devices I had created in Android Studio.
answered Sep 26, 2019 at 12:30
SimonSimon
111 silver badge5 bronze badges