报错如下
I/flutter (17064): 创建imClient :
I/flutter (17064): LC.RTM.Exception(
I/flutter (17064): code: 0,
I/flutter (17064): essage: java.lang.IllegalStateException: Connection Lost,
I/flutter (17064): details: Connection Lost,
I/flutter (17064): )
报错代码
Client imClient = Client(id: currentUser.objectId!);
await imClient.open();
参考文档: https://leancloud.cn/docs/sdk_setup-flutter.html#hash662673194
机器环境
$ flutter --version
Flutter 3.3.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision d9111f6402 (10 weeks ago) • 2022-10-19 12:27:13 -0700
Engine • revision 3ad69d7be3
Tools • Dart 2.18.2 • DevTools 2.15.0
android 创建方式为: flutter create -a java .