emoji-java icon indicating copy to clipboard operation
emoji-java copied to clipboard

the org.json lib is different from Android's SDK

Open W-quan opened this issue 7 years ago • 4 comments

eg:

JSONObject.getString()

W-quan avatar Jul 26 '18 09:07 W-quan

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 avatar Jul 26 '18 09:07 W-quan

@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 avatar Aug 07 '18 21:08 1951FDG

@1951FDG thanks 👍

W-quan avatar Aug 08 '18 08:08 W-quan

State it in readme , pls

RuffianZhong avatar Dec 12 '19 01:12 RuffianZhong