在写Flutter程序的时候,我常遇到以下报错:
PS C:SoftwareIDEAdemo006> 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 libmain.dart on Android SDK built for x86 in debug mode... Running Gradle task 'assembleDebug'... 44.3s √ Built buildappoutputsflutter-apkapp-debug.apk. Installing buildappoutputsflutter-apkapp.apk... 4.4s Error: ADB exited with exit code 1 Performing Streamed Install adb: failed to install C:SoftwareIDEAdemo006uildappoutputsflutter-apkapp.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE] Error launching application on Android SDK built for x86.
原因是模拟器存储空间不够,这时我们卸载一些之前安装的Flutter程序,再重新执行flutter run即可。