the org.json lib is different from Android's SDK
eg:
JSONObject.getString()
I am using JSONObject from android's sdk in my project.
And i'm also using emoji-java.
When i enable minifyEnabled, the build system will choose emoji-java's org.json package to replace mine. ( why?)
They are different, and it occurs some problem.
@W-quan Encountered this very same issue,
Fix:
implementation("com.vdurmont:emoji-java:4.0.0") {
exclude group: 'org.json', module: 'json'
}
If you get an error, you'll need to empty/remove the module cache, /.gradle/caches/modules-2/files-2.1/com.vdurmont/emoji-java/4.0.0 and then sync again
@vdurmont Thanks for the great library, could you update the readme for Android users, thx 👍
@1951FDG thanks 👍
State it in readme , pls