Open reytum opened 5 years ago
@eclipsewebmaster Any update on this?
@reytum Try modifying packagingOptions in the build. gradle file
@godchengvip packagingOptions has any question?
@godchengvip packagingOptions has any question?
I hava a sample problem,because of we have been set packagingOptions as: packagingOptions { exclude 'META-INF/*' } this setting will to do filter logcat.propties file, you can delete it
@godchengvip I also got the same exception:
java.util.MissingResourceException: Can't find bundle for base name org.eclipse.paho.client.mqttv3.internal.nls.logcat, locale zh_CN
But it's in IMqttActionListener#onFailure(token: IMqttToken?, exception: Throwable) And i don't have the packagingOptions in my build. gradle file
Solved this by adding -keep class org.eclipse.paho.client.mqttv3.logging.JSR47Logger { *; } in the proguard-rules.pro file!
Found here.
try to change: [implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.1.0'] to: [implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.4']
change the mqttv3 version to 1.2.4
@elefnikolaidis I'm not using Proguard at all and still having this issue. May be you get any ideas of how to fix it? I checked the resulting classes.dex
file with the dexdump
tool, and this JSR47Logger
class is in there.
已收到,谢谢。我会尽快查收的。
@elefnikolaidis I'm not using Proguard at all and still having this issue. May be you get any ideas of how to fix it? I checked the resulting
classes.dex
file with thedexdump
tool, and thisJSR47Logger
class is in there.
@egnartsms Maybe adding Proguard will help you solve the issue? It's been ages I fixed this. I would suggest trying different versions of the library. (btw, I'm elefnikolaidis, just with a different account xD)
@grabismartsolutions I managed to solve this issue. The thing is that all internal/nls/*
.properties files should be included in the resulting .jar. These files are being accessed at runtime. I did this by calling aapt add <my.apk> <all_files>
from command line (in a script). It was crazy.
已收到,谢谢。我会尽快查收的。
Please fill out the form below before submitting, thank you!
Android API Version Bug Seen on: 26
Android Version Bug Seen on: 8.1
Library used:
Please also check that if you have found the bug in the Release version (1.1.1) that you check that it also exists in the Snapshot (1.1.2-SNAPSHOT) before raising a bug.
Description of Bug:
App crashes when calling MqttClient.connect Its happening in a ReactNative project.
Console Log output (if available):
Crash logs: