flutter publish their own plug-in encountered problems and solutions

Now ecological flutter is still not perfect, ultimately, to do flutter and native development deal

Before someone else has been using the plug-in, cite in the pubspec.yaml

-------

Pub.dev recently published yourself your own plug-ins, find the whole process is actually very pit, the pit is the most upload process, because of the network, twists and turns for a moment, record it

--------

The beginning will always encounter

Authorization received, processing...
It looks like accounts.google.com is having some trouble.
Pub will wait for a while before trying to connect again.

The following begun to address

First with a good ss

Second in command line

export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;

Above this there is the mac version ss "Copy command terminal agent" option, but note that this command is only effective on the current command line, so do the other terminal configuration, and then perform upload in ide, so it is useless

Looks great! Are you ready to upload your package (y/n)? y
Pub needs your authorization to upload packages on your behalf.
In a web browser, go to https://accounts.google.com/o/oauth2/auth?access_type=offline&approval_prompt=force&response_type=code&client_id=818368855108-8grd2eg9tj9f38os6f1urbcvsq399u8n.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A49786&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email
Then click "Allow access".

 

Waiting for your authorization...
Authorization received, processing...
Successfully authorized.
Uploading...
Successfully uploaded package.

Finally succeeded, pay attention to the whole process of the main points is to configure the terminal agent (bearing in mind the terminal agent is global or just the command line in the current window)

Published 371 original articles · won praise 32 · views 240 000 +

Guess you like

Origin blog.csdn.net/perfectnihil/article/details/103366428