Flutter-发布插件到pub上传不上问题

问题1:

尝试指令:

 flutter packages pub publish --server=https://pub.dartlang.org

问题2:

问题1解决后,进入验证身份,点击终端显示的链接,跳转到google验证,记得这里要科*学上网,点击确定认证后,发现一直卡在下图。

尝试解决方案:

  • 首先查看科** 学上网的代理
    我这里使用的是**软件,如下图点击复制出来端口号粘贴出来

    export https_proxy=http://127.0.0.1:7890
    http_proxy=http://127.0.0.1:7890
    all_proxy=socks5://127.0.0.1:7890

根据粘贴出来的知道端口号为:7890

然后把下面命令端口号换成你的端口号,我这里是7890

export https_proxy=http://127.0.0.1:7890
export http_proxy=http://127.0.0.1:7890
set https_proxy=https://127.0.0.1:7890
set http_proxy=http://127.0.0.1:7890

复制上面的指令在android studio终端terminal中执行。然后再重新执行发布命令。

 flutter packages pub publish --server=https://pub.dartlang.org

执行后成功了。

相关推荐
lqj_本人16 小时前
flutter_鸿蒙next_Dart基础②List
flutter
lqj_本人16 小时前
flutter_鸿蒙next_Dart基础①字符串
flutter
The_tuber_sadness16 小时前
【Flutter】- 基础语法
flutter
helloxmg18 小时前
鸿蒙harmonyos next flutter通信之BasicMessageChannel获取app版本号
flutter
linpengteng1 天前
使用 Flutter 开发数字钱包应用(Dompet App)
前端·flutter·firebase
云兮Coder2 天前
鸿蒙 HarmonyNext 与 Flutter 的异同之处
flutter·华为·harmonyos
lqj_本人2 天前
flutter_鸿蒙next(win)环境搭建
flutter·华为·harmonyos
yuanlaile2 天前
Windows上面搭建Flutter Android运行环境
android·flutter