【错误记录】发布 Flutter 插件包报错 ( It‘s strongly recommended to include a “homepage“ or “repository“ field )
生活随笔
收集整理的這篇文章主要介紹了
【错误记录】发布 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.yamlPackage 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】开发 Flutter
- 下一篇: 【错误记录】发布 Flutter 插件包