openim-sdk-core icon indicating copy to clipboard operation
openim-sdk-core copied to clipboard

[BUG] Gomobile packaging AAR access project error

Open liloutest opened this issue 1 year ago • 3 comments

OpenIM SDK Version

3.8.0

SDK Platform

Android SDK

Device Model

nova 10 SE, BNE-AL00

Operating System Version

HarmonyOS 4.2.0

Bug Description and Steps to Reproduce

I am using gomobile to package the aar access project for the openim sdk core project, and there is an error message indicating runtime. jar: D8: java. lang. PullPointer Exception: Cannon invoice "String. length()" because "" is null

Screenshots Link

No response

liloutest avatar Aug 07 '24 11:08 liloutest

It appears to be an Android-level build issue. You can try to emulate the approach used in the Android-demo by including the Android SDK and then verify if it runs correctly. If the issue persists, you can submit more detailed information, and I will continue to assist you.

If you need further help, please feel free to reach out.

FGadvancer avatar Aug 08 '24 09:08 FGadvancer

But I downloaded the Flutter demo project, developed based on Flutter, and made changes to the native Android version of AAR, which caused errors

liloutest avatar Aug 08 '24 10:08 liloutest

core-sdk-3.8.0.aar

liloutest avatar Aug 08 '24 10:08 liloutest

To avoid like this issues, the SDK plans to remove Gomobile in version 3.9 and use FFI bridging directly to achieve cross-language interoperability.

FGadvancer avatar Nov 21 '24 13:11 FGadvancer