flutter run on device with previously ran app installed crashes #18991
Labels
c: crash
Stack traces logged to the console
c: regression
It was better in the past than it is now
tool
Affects the "flutter" command-line tool. See also t: labels.
Ever since 0.4.4 if you run a flutter app in a device, then disconnect the device, reconnect it (or even just pressing stop and then play in Android-Studio), and run again it crashes with a stacktrace and everything. The only solution, which is terribly unpractical, since this option is not available in Android Studio is to flutter clean and flutter packages get, and them run again, which takes a lot longer.
Crash output-------------------------------------------
Oops; flutter has exited unexpectedly.
Crash report written to /home/meego/code/hypnotic/glimpse/flutter_01.log;
please let us know at https://github.com/flutter/flutter/issues.
FAILURE: Build failed with an exception.
Where:
Script '/opt/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 435
What went wrong:
Execution failed for task ':app:flutterBuildDebug'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
BUILD FAILED in 14s
Finished with error: Gradle build failed: 1
flutter_01.log ---------------------------------------------------------------
Flutter crash report; please file at https://github.com/flutter/flutter/issues.
command
flutter build bundle --suppress-analytics --target /~project/lib/main.dart --preview-dart-2 --filesystem-scheme org-dartlang-root --depfile /~project/build/app/intermediates/flutter/debug/snapshot_blob.bin.d --asset-dir /~project/build/app/intermediates/flutter/debug/flutter_assets
exception
FileSystemException: FileSystemException: Cannot open file, path = '/~project/assets/glimpse/build/app/intermediates/flutter/debug/flutter_assets/assets/glimpse/assets/ic_glimpse_colored.png' (OS Error: No such file or directory, errno = 2)
flutter doctor
The text was updated successfully, but these errors were encountered: