文章目录
一、报错信息
二、解决方案
一、报错信息
发布 Flutter 插件包到中央仓库前 , 先执行
flutter packages pub publish --dry-run
命令 , 检查插件包 ;
然后报出如下警告 ;
D:\002_Project\002_Android_Learn\flutter_package>flutter packages pub publish --dry-run Publishing flutter_package 0.0.1 to https://pub.flutter-io.cn: |-- CHANGELOG.md |-- LICENSE |-- README.md |-- flutter_package.iml |-- lib | '-- flutter_package.dart |-- pubspec.yaml '-- test '-- flutter_package_test.dart Package validation found the following potential issue: * It's strongly recommended to include a "homepage" or "repository" field in your pubspec.yaml Package has 1 warning. pub finished with exit code 65
二、解决方案
在 pubspec.yaml 中配置 主页 homepage 地址 :
homepage: https://github.com/han1202012/flutter_package