Why doesn’t build_runner generate files when serializing JSON in dart/flutter

I had a similar issue, but I am using Android Studio IDE and I have done the following step:

File => Invalidate caches / Restart

Run following command:

flutter clean

flutter pub get

flutter packages pub run build_runner build --delete-conflicting-outputs  
     

About –delete-conflicting-outputs

Assume conflicting outputs in the users package are from previous builds, and skip the user prompt that would usually be provided.

Reference

Leave a Comment