openimsdk / open-im-flutter-demo

Demo developed based on flutter open IM SDK.
https://openim.io
Apache License 2.0
310 stars 208 forks source link

It seems that not all the files have been included in the 3.0 version. The files under lib/src are all missing. #82

Closed aliyoge closed 1 year ago

aliyoge commented 1 year ago

What would you like to share?

image

Additional information

No response

hrxiang commented 1 year ago

try again

aliyoge commented 1 year ago

try again

@hrxiang

Android的java文件也没传全😓

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{cn.rentsoft.flutter.openim.consumer/cn.rentsoft.flutter.openim.consumer.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "cn.rentsoft.flutter.openim.consumer.MainActivity" on path: DexPathList[[zip file "/data/app/~~RC3SNzIgYkR3QBuNraGd4w==/cn.rentsoft.flutter.openim.consumer-zsj3Yem5BnLAcTo9sLEHpQ==/base.apk"],nativeLibraryDirectories=[/data/app/~~RC3SNzIgYkR3QBuNraGd4w==/cn.rentsoft.flutter.openim.consumer-zsj3Yem5BnLAcTo9sLEHpQ==/lib/arm64, /data/app/~~RC3SNzIgYkR3QBuNraGd4w==/cn.rentsoft.flutter.openim.consumer-zsj3Yem5BnLAcTo9sLEHpQ==/base.apk!/lib/arm64-v8a, /system/lib64, /hw_product/lib64, /system/lib64/module/multimedia, /system/product/lib64]]
hrxiang commented 1 year ago

try again

@hrxiang

Android的java文件也没传全😓

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{cn.rentsoft.flutter.openim.consumer/cn.rentsoft.flutter.openim.consumer.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "cn.rentsoft.flutter.openim.consumer.MainActivity" on path: DexPathList[[zip file "/data/app/~~RC3SNzIgYkR3QBuNraGd4w==/cn.rentsoft.flutter.openim.consumer-zsj3Yem5BnLAcTo9sLEHpQ==/base.apk"],nativeLibraryDirectories=[/data/app/~~RC3SNzIgYkR3QBuNraGd4w==/cn.rentsoft.flutter.openim.consumer-zsj3Yem5BnLAcTo9sLEHpQ==/lib/arm64, /data/app/~~RC3SNzIgYkR3QBuNraGd4w==/cn.rentsoft.flutter.openim.consumer-zsj3Yem5BnLAcTo9sLEHpQ==/base.apk!/lib/arm64-v8a, /system/lib64, /hw_product/lib64, /system/lib64/module/multimedia, /system/product/lib64]]

try again

aliyoge commented 1 year ago

iOS也报错 @hrxiang

Swift Compiler Error (Xcode): Type 'AdvancedMsgListener' does not conform to protocol 'Open_im_sdk_callbackOnAdvancedMsgListenerProtocol'
/Users/xxxxxx/.pub-cache/git/Open-IM-SDK-Flutter-bd364ea2fddabcfa25e58d83125f7bc3070ef5d2/ios/Classes/Module/MessageManager.swift:282:13

Could not build the application for the simulator.
Error launching application on iPhone 14.
Exited
hrxiang commented 1 year ago

pod cache clean OpenIMSDKCore --all

pod update

aliyoge commented 1 year ago

pod cache clean OpenIMSDKCore --all

pod update

清了也没用

$  pod cache clean OpenIMSDKCore --all

[!] No cache for pod named OpenIMSDKCore found

还是报一样的错

aliyoge commented 1 year ago

手动删除flutter pub的git缓存,删掉pubspec.lock重新 pub get后的版本就对了。 建议仓库的pubspec.lock也固定一下。