来自飞镖的图书馆'uuid'不适用于扑动?

时间:2017-09-16 15:10:59

标签: flutter

在添加 Dart Library Uuid的依赖项后,我尝试了 flutter run

我更改的依赖关系

  dependencies:
      uuid: 0.5.0 // or also - uuid: "^0.5.3"

来自Flutter的错误

    Error: 'package:convert/src/hex/encoder.dart': malformed type: line 20 pos 13: cannot resolve class 'ChunkedConverter' from 'HexEncoder'
    extends ChunkedConverter<List<int>, String, List<int>, String> {
            ^
Failed to run the Flutter compiler. Exit code: 254

FAILURE: Build failed with an exception.

* Where:
Script 'C:\Users\xxxx\Flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 329

* What went wrong:
Execution failed for task ':app:flutterBuildDebug'.
> Process 'command 'C:\Users\xxxx\Flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 254

为什么这不适用于颤动?

1 个答案:

答案 0 :(得分:1)

阅读https://github.com/dart-lang/sdk/issues/29543#issuecomment-298888237后,我想您可能想尝试在convert: "^2.0.1"上添加pubspec依赖项。这有帮助吗?