切换到飞镖2会导致jaguar序列化程序出现问题

时间:2018-04-10 19:29:25

标签: flutter

通过更新飞镖2,美洲虎序列化程序会导致问题。

我的设置是:

Flutter Channel beta,v0.2.8

pubspec.yaml

dependencies:
  analyzer: "^0.31.2-alpha.1" ## i also tried to get the newest version
  intl: "^0.15.4"
  http: "^0.11.3+16"
  great_circle_distance: "^1.0.1"
  ####jaguar_serializer: "^1.0.0-dev5"
  jaguar_serializer: ^1.0.0-dev1

dev_dependencies:
  build_runner: ^0.8.0
  jaguar_serializer_cli: ^1.0.0-dev1

这是我收到的错误消息。好像分析仪包已经改变了..

DynamicTypeImpl来自包:analyzer / src / dart /element/type.dart

InterfaceType来自包:analyzer / dart /element/type.dart

  [SEVERE] jaguar_serializer_cli on lib/foundation/dart/logic/raw/RawType.dart:
    Error running JaguarSerializerGenerator for nalisa_foundation|lib/foundation/dart/logic/raw/RawType.dart.
    type 'DynamicTypeImpl' is not a subtype of type 'InterfaceType' in type cast where
      DynamicTypeImpl is from package:analyzer/src/dart/element/type.dart
      InterfaceType is from package:analyzer/dart/element/type.dart

    [SEVERE] jaguar_serializer_cli on lib/foundation/dart/logic/Status.dart:
    Error running JaguarSerializerGenerator for nalisa_foundation|lib/foundation/dart/logic/Status.dart.
    type 'DynamicTypeImpl' is not a subtype of type 'InterfaceType' in type cast where
      DynamicTypeImpl is from package:analyzer/src/dart/element/type.dart
      InterfaceType is from package:analyzer/dart/element/type.dart

1 个答案:

答案 0 :(得分:1)

使用jaguar_serialzier 2.2

dependencies:
  analyzer: "^0.32.0"
  intl: "^0.15.4"
  http: "^0.11.3+16"
  great_circle_distance: "^1.0.1"
  jaguar_serializer: ^2.2.0

dev_dependencies:
  build_runner: ^0.8.0
  jaguar_serializer_cli: ^2.2.0

此外,捷豹(Jaguar)垃圾通道是一个提问的好地方。