crisp-im / crisp-sdk-android

:package: Crisp Android SDK, add a chat in any Android app and communicate with your users.
https://docs.crisp.chat/guides/chatbox-sdks/android-sdk/
Other
55 stars 17 forks source link

Getting STRING_TOO_LARGE error #41

Closed alenkopic1 closed 2 years ago

alenkopic1 commented 3 years ago

Hi, when I add Crisp dependency, with very next build I get an error "STRING_TOO_LARGE". Here is a video. You can see that it starts with successful build. Right after adding Crisp dependency and repeating build, I get an error.

baptistejamin commented 3 years ago

What Gradle version are you using?

adi9090 commented 3 years ago

Could this be related to large vector drawable files? The tile_floating_cogs.xml is 43.4kB file, tile_i_like_food.xml 11.1kB Would it be better to use png in this cases? This is suggested here: https://stackoverflow.com/a/60684722/5142327 UPDATE: I've added the tile_floating_cogs.xml file to empty project and got the same error, issue is with the drawable files with long pathData value.

alenkopic1 commented 3 years ago

Hi, I'm using 4.0.1 Android Gradle Plugin Version, and 6.6.1 Gradle Version. EDITED: Same error is with latest 4.1.2 Gradle

baptistejamin commented 3 years ago

Can you try downgrading Gradle?

alenkopic1 commented 3 years ago

Hi, since it is a large project in production, downgrading Gradle is not an option. Can you please solve this issue, maybe by removing oversized vector files? Best regards, Alen

baptistejamin commented 3 years ago

Sure, we'll have a look on this :)

Angelhandy commented 3 years ago

Hi!! @baptistejamin we are having the same problem that Alen, we are using 4.0.1 too and can't downgrade either. Wanted to ask too: where are these methods in this new version?: "Crisp.Session.setData" and "Crisp.Session.pushEvent"

baptistejamin commented 3 years ago

The setData and PushEvents are coming soon :)

Doc1faux commented 2 years ago

The issue was indeed related to too large vector drawable files. The issue has been adressed in 1.0.2.

APIs have also been added in 1.0.2, check it here :)