错误记录发布 Flutter 插件包报错 ( It‘s strongly recommended to include a “homepage“ or “repository“ field )(代码片

Posted 韩曙亮

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了错误记录发布 Flutter 插件包报错 ( It‘s strongly recommended to include a “homepage“ or “repository“ field )(代码片相关的知识,希望对你有一定的参考价值。





一、报错信息



发布 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

以上是关于错误记录发布 Flutter 插件包报错 ( It‘s strongly recommended to include a “homepage“ or “repository“ field )(代码片的主要内容,如果未能解决你的问题,请参考以下文章

错误记录发布 Flutter 插件包报错 ( ‘gmail.com‘ has insufficient permissions to upload new versions of package)(代

错误记录安装 Visual Studio 2013 中文语言包报错 ( 需要 Microsoft Visual Studio Test Agent , 但此计算机上并为安装它 )

Python 学习记录Pycharm导入第三方包报错问题……ValueError: check_hostname requires server_hostname

eclipse maven 包报错怎么解决

微软SSIS部署抽取数据的包报错

Spring boot 打包为war包报错:提示缺少web.xml