Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行flutter packages pub run json_model 命令报错 #2

Open
tk-canday opened this issue Jun 1, 2019 · 4 comments
Open

运行flutter packages pub run json_model 命令报错 #2

tk-canday opened this issue Jun 1, 2019 · 4 comments

Comments

@tk-canday
Copy link

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);
@chenjianjun571
Copy link

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

@chenjianjun571
Copy link

  • '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);

@ldb-github
Copy link

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

@ldb-github
Copy link

修改dev_dependencies:build_runner: ^1.6.0 @chenjianjun571

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants