[!] Flutter (Channel [user-branch], 3.24.4, on macOS 14.6.1 23G93 darwin-arm64,
locale zh-Hans-CN)
! Flutter version 3.24.4 on channel [user-branch] at
/Users/rr/Documents/sdk/flutter
Currently on an unknown channel. Run `flutter channel` to switch to an
official channel.
If that doesn't fix the issue, reinstall Flutter by following instructions
at https://flutter.dev/setup.
! Upstream repository unknown source is not a standard remote.
Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss
this error.
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.95.1)
[✓] Connected device (4 available)
[✓] Network resources
确保相关开发环境及代码编辑器正确配置
终端运行
编辑器运行 - Android studio
编辑器运行 - VSCode
执行 flutter build apk/ios
打包前在 lib/http/init.dart 中关闭代理
client.findProxy = (uri) {
// proxy all request to localhost:8888
// return 'PROXY 192.168.1.60:7890';
// return 'PROXY 172.16.32.186:7890';
// return 'PROXY localhost:7890';
// return 'PROXY 127.0.0.1:7890';
// 不设置代理 TODO 打包前关闭代理
return 'DIRECT';
};
授权@24 版权©️