0

I am trying to create a Objectbox model in flutter app But it shows me the following error /////////////

\[INFO\] Generating build script completed, took 221ms
\[INFO\] Reading cached asset graph completed, took 46ms
\[INFO\] Checking for updates since last build completed, took 521ms
\[WARNING\] objectbox_generator:generator on lib/$lib$:
Creating model: lib/objectbox-model.json
\[INFO\] Running build completed, took 7.7s
\[INFO\] Caching finalized dependency graph completed, took 24ms
\[INFO\] Succeeded after 7.7s with 1 outputs (5 actions)

////////////////

my model:

    @Entity()
    class Templates {
    
      @Id()
      int id = 0;
    
      String? templateId;
      String? templateName;
      String? valuables;
    }
        
    
    
    @Entity()
    class Services {
    
      @Id()
      int id = 0;
    
      String? serviceId;
      String? serviceName;
    }
  • Actually the generator succeeded. It just "warns" you that it created a new model file (vs. using an existing one) at the printed location (`lib/objectbox-model.json`). – Uwe - ObjectBox Feb 20 '23 at 10:10

0 Answers0