Closed aderito7 closed 3 years ago
Skip dart migrate --apply-changes
and it works :)
Hi @aderito7
I just tried to reproduce the following steps, here are the logs, the app runs fine
PS C:\Users\Taha\AndroidStudioProjects> cd .\app_name\
PS C:\Users\Taha\AndroidStudioProjects\app_name> dart --version
Dart SDK version: 2.12.0 (stable) (Thu Feb 25 19:50:53 2021 +0100) on "windows_x64"
PS C:\Users\Taha\AndroidStudioProjects\app_name> dart migrate --apply-changes
Migrating C:\Users\Taha\AndroidStudioProjects\app_name
See https://dart.dev/go/null-safety-migration for a migration guide.
Analyzing project...
[---------------------------------------------------------------------------------------------------------------------\]No analysis issues found.
Generating migration suggestions...
[----------------------------------------------------------------------------------------------------------------------]
Compiling instrumentation information...
[----------------------------------------------------------------------------------------------------------------------]
Applying changes:
lib\main.dart (11 changes)
test\widget_test.dart (1 change)
pubspec.yaml (1 change)
.dart_tool\package_config.json (1 change)
Applied 4 edits.
Thanks @TahaTesser - tested again. Might be an issue that was resolved through reboot or something. Not a problem anymore, though 🙂
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
Command
Steps to Reproduce
flutter create app_name
,cd app_name
,dart migrate --apply-changes
,flutter run
Logs
IndexError: RangeError (index): Index out of range: index should be less than 34989206: 46326243
Flutter Application Metadata
Type: app Version: 1.0.0+1 Material: true Android X: false Module: false Plugin: false Android package: null iOS bundle identifier: null Creation channel: stable Creation framework version: c5a4b4029c0798f37c4a39b479d7cb75daa7b05c