You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
I should have added to the original response: minify/shrink will absolutely not work under any circumstances until (unless) we add support to essentially skip the entire common runtime from the tree-shaking. The native part of the common runtime uses JNI references to classes and minify/shrink will throw those methods/classes away because it doesn't understand usage external to Java.
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
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
The text was updated successfully, but these errors were encountered: