I am integrating sdkboxplay plugin. I followed the steps described in the tutorial. Unfortunately, I can’t compile it for Android.
cocos2dx v3.15.1
SDKBoxPlay v2.5.1.2
I get lots of duplicates like:
java.lang.RuntimeException: Duplicate class android.support.annotation.AnimRes found in modules support-annotations-26.1.0.jar (com.android.support:support-annotations:26.1.0) and support-annotations-27.1.1.jar (support-annotations-27.1.1.jar)
Duplicate class android.support.annotation.WorkerThread found in modules support-annotations-26.1.0.jar (com.android.support:support-annotations:26.1.0) and support-annotations-27.1.1.jar (support-annotations-27.1.1.jar)
Duplicate class android.support.annotation.XmlRes found in modules support-annotations-26.1.0.jar (com.android.support:support-annotations:26.1.0) and support-annotations-27.1.1.jar (support-annotations-27.1.1.jar)
Duplicate class com.google.ads.AdRequest found in modules classes.jar (com.google.android.gms:play-services-ads-lite:17.2.0) and google-play-services.jar (google-play-services.jar)
Duplicate class com.google.android.gms.auth.api.signin.GoogleSignInAccount found in modules classes.jar (com.google.android.gms:play-services-base:16.0.1) and google-play-services.jar (google-play-services.jar)
Duplicate class com.google.android.gms.tasks.zzs found in modules classes.jar (com.google.android.gms:play-services-tasks:16.0.1) and google-play-services.jar (google-play-services.jar)
Remove android-support-v4.jar from cocos/platform/android/java/libs
Remove support-annotations-27.1.1 from cocos/platform/android/java/libs
Remove google-play-services.jar from cocos/platform/android/java/libs/gps/libs
Change gps version number in cocos/platform/android/java/libs/gps/libs/res/values/version.xml to 12451000 (you will get crash after SDKBoxPlay init, check the logs in the console).