When you publish the plug-in, you will get the following message due to wall problems:

It looks like accounts.google.com is having some trouble.

(This problem may still occur when VPN is enabled.) We can do the following setup in sequence (my agent is using SS, others should be similar) :

1. Open VPN, right-click the small plane in the lower right corner – choose “Option Settings” – open the following window

2. Select allow connections from the LAN and leave the port number unchanged.

3, Open AndroidStudio-file-setting, the window is as follows (the picture is from the network)

4. Check auto-detect Proxy Settings (this means automatically detect and apply the computer proxy Settings)

5, Open AS Terminal and enter Settings respectively:

The set http_proxy = http://127.0.0.1:1080

The set https_proxy = http://127.0.0.1:1080

6. Successful launch (at least mine did, haha)

Some other attempts:

Flutter packages pub publish,

Flutter packages pub publish –server=https://pub.dartlang.org

In addition, you can delete the mirror configuration of FLUTTER from the local environment configuration before publishing.