遇到的報錯信息
Unexpected child "deferred-components" found under "flutter".
Please correct the pubspec.yaml file at /Users/AName/AndroidStudioFlutterProjects/gallery-master/pubspec.yaml
git: fatal: unable to access 'https://github.com/flutter/flutter.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
Switching channels failed with error code 128.
學(xué)習(xí)的文章:
資料一:git連不上的問題
下載項目后鞠柄,我把項目文件夾,放在我平時創(chuàng)建Flutter項目的路徑下
使用Android Studio打開項目嫉柴,打開模擬器春锋,運行
flutter run
看到這里我以為是pubspec.yaml的問題,去pub get 并沒有用差凹。
在網(wǎng)上搜索到的答案是:當(dāng)前的channel是stable期奔,要切換到master
查看當(dāng)前處于什么channel的命令為
flutter channel
切換指令
flutter master
切換channel的時候,因為git的連接問題也報了錯危尿,解決如下:
控制臺輸出
以上完成后呐萌,記得去pubspec.yaml文件中,pub get 插件們谊娇。
我也不知道為啥這張截圖這么大.png
肺孤。