Closed aliyoge closed 1 year ago
try again
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
@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
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
pod cache clean OpenIMSDKCore --all
pod update
pod cache clean OpenIMSDKCore --all
pod update
清了也没用
$ pod cache clean OpenIMSDKCore --all
[!] No cache for pod named OpenIMSDKCore found
还是报一样的错
手动删除flutter pub的git缓存,删掉pubspec.lock重新 pub get后的版本就对了。 建议仓库的pubspec.lock也固定一下。
What would you like to share?
Additional information
No response