Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid depfile: C:\xxx\xxx\Flutter\project_name\.dart_tool\flutter_build\df4b308df1ee4bce22c56c71751554d1\kernel_snapshot.d Invalid

Tags:

flutter

dart

I am getting the following error in flutter I am aware that it is due to old packages. I cleaned the old packages in the pubspecyaml file but my problem is not solved.

Invalid depfile: C:\xxx\xxx\Flutter\project_name.dart_tool\flutter_build\df4b308df1ee4bce22c56c71751554d1\xxx.d Invalid

like image 793
Davut Aslan Avatar asked Oct 21 '25 07:10

Davut Aslan


2 Answers

Open the ide terminal and run the codes in order:

flutter clean
flutter pub get

I hope your problem will be solved.

like image 83
Mert Durukan Avatar answered Oct 23 '25 20:10

Mert Durukan


I had currently this error and helped me removing that {app}.dart_tool\flutter_build\df4b308df1ee4bce22c56c71751554d1 folder.

like image 40
Jakub Rony Roncak Avatar answered Oct 23 '25 20:10

Jakub Rony Roncak