Nithin Pramod
Nithin Pramod

Reputation: 1

flutter build runner showing error and cannot generate files

enter image description here

part 'data_model.g.dart'; target hasn't been generated

I have tried so many ways to fix it but it does not work anyone can give a answer to solve it.

I tried updating dependencies and so many command lines

'flutter packages pub run build_runner watch --use-polling-watcher --delete-conflicting-outputs'

If anyone could fix it.

Upvotes: 0

Views: 161

Answers (1)

Koleksiyonum
Koleksiyonum

Reputation: 11

Don't forget to add hive_generator at the dev_dependencies. Here's the link; https://pub.dev/packages/hive_generator

Upvotes: 1

Related Questions