Flutter之adb: failed to install apk的解决方法

在写Flutter程序的时候,我常遇到以下报错:

PS C:\Software\IDEA\demo006> flutter run
Using hardware rendering with device Android SDK built for x86. If you notice graphics artifacts, consider enabling software rendering with
"--enable-software-rendering".
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...                             44.3s
√ Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk...                 4.4s
Error: ADB exited with exit code 1
Performing Streamed Install

adb: failed to install C:\Software\IDEA\demo006\build\app\outputs\flutter-apk\app.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
Error launching application on Android SDK built for x86.

原因是模拟器存储空间不够,这时我们卸载一些之前安装的Flutter程序,再重新执行flutter run即可。

posted @ 2021-04-16 15:46  罗毅豪  阅读(5127)  评论(0编辑  收藏  举报