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