エラー・警告
- 2023年2月11日
- 2023年2月11日
【Flutter】flutter_gen使用時に「pub finished with exit code 65」
状況 flutter_genを使用している時に、以下のbuild_runner実行時にエラーが発生した。 解決策 flutter_genではなく、flutter_gen_runner を使用する ダメだった解決策 検索した中で、以下のような方法で解決された方がいらっしゃいました。私の環境では役に立ちませんでしたが、参考に記載しておきます。 「flutter pub get」 を複数回実行する 「f […]
- 2023年2月9日
- 2023年2月9日
【Flutter 解決済】Execution failed for task ‘:app:checkDebugDuplicateClasses’. のエラー
状況 FlutterでMelosに対応してファイル移動とかやっているときに発生した。Melosと関係があるかはよく分からない。 解決方法 修正前 修正後 参考 Issue building android duplicate versions of jetified-kotlin-stdlib-1 #35979 エラー全文
- 2023年2月8日
- 2023年2月8日
【Flutter 解決済】The method ‘File.create’ has fewer named arguments than those of overridden method ‘File.create’.のエラー
状況 2ヶ月くらい放置のアプリを久しぶりに更新しようとしたら、「The method ‘File.create’ has fewer named arguments than those of overridden method ‘File.create’.」というエラーが発生して、起動できなかった。 その間にFlutterのバージョンが「 3.7. […]
- 2023年1月16日
- 2023年1月16日
Warning: A tag was used that wasn’t specified in dart_test.yaml. を消した
警告内容 FlutterでGolden Testを実施すると、「Warning: A tag was used that wasn’t specified in dart_test.yaml. 」と警告が表示される。 解決策 プロジェクトの直下に「dart_test.yaml」を作成したら、表示されなくなりました。 内容は人によりけりですが、アトミックデザインを意識したディレクトリ構成 […]
- 2023年1月10日
【Flutter】The following assertion was thrown for “ext.flutter.inspector.setSelectionById”→解決
下記のエラーが発生したので、対応して解決しました。 エラー内容 The following assertion was thrown during a service extension callback for "ext.flutter.inspector.setSelectionById": Id does not exist. 対応 flutter cleanして、flutter pub g […]
- 2022年12月21日
- 2022年12月21日
[Flutterエラー] Androidビルド時に Version code not found in manifest.
「Flutter Advent Calendar 2022」に参加させて頂きます!21日目です。 Androidのビルドで以下のようなエラーが発生したので、その解決方法を書きます。 エラー内容 FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':app:packageReleas […]
- 2022年12月13日
- 2022年12月14日
【Flutter】Unable to generate package graph, no /.dart_tool/flutter_gen/pubspec.yaml foundのエラー【解決】
Bad state: Unable to generate package graph, no `[プロジェクトへのパス]/.dart_tool/flutter_gen/pubspec.yaml` found. が発生したときの解決方法を書きました。
- 2022年12月12日
- 2022年12月14日
【Flutter の例外】Tried to modify a provider while the widget tree was building. 【解決】
「Flutter Advent Calendar 2022」に参加させて頂きます!一応作成日にマッチさせてるし、開いている、クレームは言われないよね?。12日目です。 状況 RiverpodのConsumerStatefulWidgetを使用して状態管理をしている。initSateの中でStateProviderの値を書き換えようとすると、以下のエラーが発生した。 Unhandled Except […]
- 2022年12月10日
- 2022年12月14日
[Flutter] The argument type ‘ClassName/1/’ can’t be assigned to the parameter type ‘ClassName/2/’.【解決済】
「Flutter Advent Calendar 2022」に参加させて頂きます!一応作成日にマッチさせてるし、開いている、クレームは言われないよね?。10日目です。 エラーの現象 Flutter のテスト実施時に以下の現象が発生した。クラス内でjsonへ変換するメソッドを実装している。 > flutter test 00:01 +3: D:\project\github_api\test\ […]