json_model icon indicating copy to clipboard operation
json_model copied to clipboard

运行`flutter packages pub run json_model` 命令报错

Open tk-canday opened this issue 5 years ago • 4 comments

The method 'cleanFor' isn't defined for the class 'CleanCommand'.

  • 'CleanCommand' is from 'file:///Users/canday/.pub-cache/hosted/pub.flutter-io.cn/json_model-0.0.2/bin/src/commands/clean.dart'. Try correcting the name to the name of an existing method, or defining a method named 'cleanFor'. await cleanFor(assetGraphPathFor(scriptLocation), logger);

tk-canday avatar Jun 01 '19 06:06 tk-canday

json文件是没有问题的,但是还是报这个错误

chenjianjun571 avatar Dec 22 '19 03:12 chenjianjun571

  • 'CleanCommand' is from '../../../flutter/.pub-cache/hosted/pub.flutter-io.cn/json_model-0.0.2/bin/src/commands/clean.dart'. Try correcting the name to the name of an existing method, or defining a method named 'cleanFor'. await cleanFor(assetGraphPathFor(scriptLocation), logger);

chenjianjun571 avatar Dec 22 '19 03:12 chenjianjun571

同样遇到这个问题 @chenjianjun571 是否已解决了呢?

ldb-github avatar Mar 20 '20 09:03 ldb-github

修改dev_dependencies:build_runner: ^1.6.0 @chenjianjun571

ldb-github avatar Mar 23 '20 04:03 ldb-github