Running "flutter pub get" in flutter_tools... 775ms
lib/page/home/store/storedetail/selectCouponView/selectCouponDialog.dart:5:8: Error: Error when reading
'../../../../Develop/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_widget_from_html_core-0.6.2/lib/flutter_widget_from_html_core.dart': No such file or directory
import 'package:flutter_widget_from_html_core/flutter_widget_from_html_core.dart';
^
lib/page/home/store/storedetail/selectCouponView/selectCouponDialog.dart:333:40: Error: The method 'HtmlWidget' isn't defined for the class '_SelectCouponDialogState'.
- '_SelectCouponDialogState' is from 'package:xiantiansaleman/page/home/store/storedetail/selectCouponView/selectCouponDialog.dart' ('lib/page/home/store/storedetail/selectCouponView/selectCouponDialog.dart').
Try correcting the name to the name of an existing method, or defining a method named 'HtmlWidget'.
child: HtmlWidget(cellData.introduction??'无'),
描述:
在pubspec.yaml中删掉了某个依赖项插件,然后有重新引入这个依赖项插件,会发现一直无法拉取成功。
解决办法:
到pub库缓存目录下,例如mac电脑上是/用户/zhimingwen/Develop/flutter/.pub-cache/hosted/pub.flutter-io.cn/ 目录,删除掉目标插件。重新运行flutter pub get就可以了。
|