Skip to content

Android app crash in release mode #443

@ngbahiep

Description

@ngbahiep

Describe the bug

Hi,
I am using this sdk to connect to aws mqtt. everything works fine in debug mode. However, app crash in release mode.
I do some testing and found that if I set minifyEnabled and shrinkResources to false, it works. Otherwise, it does not.
Below is the error:
`#1 pc 001c3d97 /data/app/com.xxx.xxx-zJ8Km5JEAhZ5OvpxzwJOMQ==/lib/arm/libaws-crt-jni.so (aws_fatal_assert+50)'

'#2 pc 000525e3 /data/app/com.xxx.xxx-zJ8Km5JEAhZ5OvpxzwJOMQ==/lib/arm/libaws-crt-jni.so (cache_java_class_ids+17026)'

'#3 pc 000490ab /data/app/com.xxx.xxx-zJ8Km5JEAhZ5OvpxzwJOMQ==/lib/arm/libaws-crt-jni.so (Java_software_amazon_awssdk_crt_CRT_awsCrtInit+258)'

'#4 pc 0003677b /data/app/com.xxx.xxx-zJ8Km5JEAhZ5OvpxzwJOMQ==/oat/arm/base.odex (offset 0x34000)`

Expected Behavior

I expect app should work

Current Behavior

current is app crash

Reproduction Steps

It crashes when start connect to mqtt

Possible Solution

No response

Additional Information/Context

No response

SDK version used

v1.14.0

Environment details (OS name and version, etc.)

android

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.p2This is a standard priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions