flutter - 为什么我会收到错误 : ADB exited with exit code 1

标签 flutter dart

如果我想启动一个简单的应用程序,几周前我使用它没有出现错误,我会收到错误消息。 那是他的错误描述:

Launching lib\main.dart on SM J530F in debug mode...
Running Gradle task 'assembleDebug'...
Parameterformat falsch -
√ Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...
Error: ADB exited with exit code 1
Performing Streamed Install

adb: failed to install C:\Users\Simon\Desktop\App Entwickeln\Projekte\test_app\build\app\outputs\apk\app.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
Error launching application on SM J530F.

最佳答案

发件人:Solution to INSTALL_FAILED_INSUFFICIENT_STORAGE error on Android

Solution Run:

adb shell "pm uninstall " adb shell "rm -rf /data/app/-*"

OR

Uninstall the app

Use your favorite method to delete BOTH:

/data/app/-1.apk

/data/app/-2.apk

Make sure nothing else blocks future installs in a similar way. In my case I had a /data/app-lib/-1 directory lingering around! In this case, an install to the SD card worked, and a subsequent move to internal memory, too. (Creating /data/app-lib/ without the -1 ending.)

对我来说,第二种解决方案有效!

关于flutter - 为什么我会收到错误 : ADB exited with exit code 1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61836287/

相关文章:

image - 如何在 flutter web 程序中压缩图像

ios - dyld:库未加载:XCode 11.3.1中的@ rpath/FBLPromises.framework/FBLPromises

flutter - 如何在列中对齐小部件?

dart - Flutter 相当于 Swift 的 NotificationCenter?

dart - 具有测试API的WebStorm DartUnit,运行/调试错误

firebase - 即使坐标在抖动中也不同,用户之间的距离始终为0?

testing - 在 Flutter 的 pumpAndSettle() 中,如何在不传入 EnginePhase 的情况下指定超时?

dart - Android Studio 3.0.1 上未显示新的 Flutter 项目向导

list - 如何将多个列表合并为一个列表? Dart

flutter - 如何让容器连续填充可用的垂直空间?