openimsdk / openim-sdk-core

Instant Messaging
https://openim.io
Apache License 2.0
343 stars 310 forks source link

[BUG] Gomobile packaging AAR access project error #645

Open liloutest opened 1 month ago

liloutest commented 1 month ago

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

FGadvancer commented 1 month ago

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.

liloutest commented 1 month ago

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 commented 1 month ago

core-sdk-3.8.0.aar