Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How do i resolve flutter objectbox build error?

I’m a Flutter developer
I’m using the obejctbox package for saving local DB.

When i upgrade flutter version and build app to make objectbox.g.dart by "flutter pub run build_runner build –delete-conflicting-outputs" command, app show erorr like below

Invalid argument(s): name shouldn’t end with a ‘.’

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I also create another flutter project and build_runner command works well.

How can i resolve this "Invalid argument(s): name shouldn’t end with a ‘.’" error?

Stackoverflow
ChatGPT4

>Solution :

In your pubspeck.lock you have the logging dependency? I was facing the same issue in build_runner and it seems that has a kind of bug with the recent version of logging. As a workaround I set the logging version to "1.1.0" and it works.

Here is the issue: https://github.com/dart-lang/build/issues/3447

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading