joycor
按照流程在Android build.gradle中加入以下代码: implementation 'cn.leancloud:storage-android:8.0.1' implementation 'cn.leancloud:realtime-android:8.0.1' implementation 'io.reactivex.rxjava2:rxandroid:2.1.1' LeanCloudApp也正常继承FlutterApplication flutter下也正常配置 leancloud_official_plugin: ^1.0.0-beta.12 leancloud_stora…
抱歉追问下: sdk依赖是flutter的leancloud_official_plugin和leancloud_storage中依赖shared_preferences导致冲突?如果这样为何ios版本正常编译。同时项目也因为在gradle中implementation引入三个包导致的安卓编译问题。 目前项目引入的sp版本是shared_preferences: '>=2.0.3 <4.0.0' 已经测试修改了版本,并没有解决问题
更正下: leancloud_storage引入了shared_preferences。 leancloud_storage我为源码引入,源码中pubspec.yaml修改leancloud_storage为shared_preferences: ^2.0.6。 同时项目中引入的sp_util的leancloud_storage版本为shared_preferences: '>=2.0.3 <4.0.0'。 此时pubspec.lock中shared_preferences版本为 理论上不存在冲突。都是2.0.6
按照源码退回sp版本为^0.5.7+2 编译时报错如下: ···D:\flutter.pub-cache\hosted\pub.flutter-io.cn\shared_preferences-0.5.7+3\android\src\main\java\io\flutter\plugins\sharedpreferences\SharedPreferencesPlugin.java:18: ����: [deprecation] PluginRegistry�е�Registrar�ѹ�ʱ public static void registerWith(PluginRegistry.Regis…
已解决,官网文档和github上的版本不统一,一个7.几一个8.几版本
E/MethodChannel#leancloud_plugin(11774): Failed to handle method call E/MethodChannel#leancloud_plugin(11774): java.lang.NullPointerException: Attempt to invoke virtual method 'long java.lang.Long.longValue()' on a null object reference E/MethodChannel#leancloud_plugin(11774): at cn.leancloud.plugin…
这个问题没人能帮忙看看么。好几天了
已解决。文档还是不完善啊
Android版本是10。 image.png 1647x152 45.3 KB 这是日志。断开后无法重连,重新回到应用后如何重新接受信息和查询数据。
感谢回复,这个需要用户自己监听断开重连么,我以为是sdk自动会重连