I run flutter packages pug run build_runner build, the normal command with which you would create a TypeAdapter in Flutter, I get the following error:
type 'UnspecifiedInvalidResult' is not a subtype of type 'LibraryElementResult' in type cast
It says that It founds the error In the following file:
import 'dart:core';
import 'package:hive/hive.dart';
part 'storedItem.g.dart';
@HiveType(typeId: 1)
class Person extends HiveObject {
@HiveField(0)
String name;
@HiveField(1)
int age;
Person({required this.name, required this.age});
}
I mean that's the Code of the documentation! What did I wrong?
Btw: Developing on a M1 MacBook Air, Flutter 2.2.3, Android Studio 4.2.2