1. Online introduction
Just add the following two sentences at the end of the pubspec.yaml file:
PUB_HOSTED_URL ===== https://pub.flutter-io.cnFLUTTER_STORAGE_BASE_URL ===== https://storage.flutter-io.cnCopy the code
Then click on Flutter Doctor and delete these two sentences. Click on Packages Get again to get Flutter Doctor
Process finished with exit code 0Copy the code
2. The reasons for this problem are as follows:
This is because I commented out the two lines of code in ~/.bash_profile. Remove the comment and restart Android Studio to re-package GET
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cnCopy the code
3. Appear when the flutter command appears
Waiting for another flutter command to release the startup lock
Solutions:
Delete the /bin/cache/lockfile file under the Flutter SDK and restart Android StudioCopy the code