Android build fails on Gradle 3.5.0

Hi.
I’m getting build error

  • What went wrong:
    Execution failed for task ‘:MyProject:multiDexListDebug’.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Error while merging dex archives:
Learn how to resolve the issue at Add build dependencies  |  Android Studio  |  Android Developers.
Program type already present: com.sdkbox.plugin.JsonUtils

I tried every single solution found in google but none of them helped.
Can someone help me?
With previous version of gradle (2.3) build succeeds but it’s not compatible with AAB package building.

it’s strange, sdkbox didn’t have the class JsonUtils, did you implement by youself.

clean?rebuild? Check whether there are more than two JsonUtils classes?

guess I found the reason. As I understand PluginSdkboxPlay was twice linked from cocos2d lib and from android project itself. So I commented

dependencies {
//    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile project(':libcocos2dx')
}

I don’t know whether it’s wrong or right.
Maybe it would be helpful for somebody with similar issue.