I added this to try solve issue. It just caused more issues. Also you say gradle.build. Lots of posts do, but there are many gradle.build files.
As for multiply support . I checked every gradle.build file. There are no visible duplicates . Ill check again to be certain .
I am at the stage now again after starting new project. I am only going to get ask play box working. With leader boards. After wards ill get another new project working with Facebook . I need demo these working today . After that I’ll try all three together in same app to see what happens
So this issue happens when you use SDKBOX importer and your build.gradle(for app(if I remember correctly)) file already contains “support.v4” dependency. So all you need to is go to “proj.android-studio/app/cocos2d/platform/android/jni/java/libs” (can’t tell this at the moment, because I need to check exact project structure on my PC, however I’m unable to do that at the moment of writing this :D), and delete all “supportV4.jar” files
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
In my case, I added “supportv4” dependency in build.gradle because it was required for some functions.
So I had to delete “supportV4.jar” from “<your_game>\cocos2d\cocos\platform\android\java\libs” and
“<your_game>\cocos2d\cocos\platform\android\libcocos2dx\libs”. It helped me. If you want to indicate where your problem is, then in “Android Studio” press “Ctrl + N”, then make sure that “Include non-project classes” box is enabled, and then search for “annotation.NonNull”. If you see duplicate entries, then trace where duplicate file persist - then delete it. I hope that helps, because thats all I can help you, as I was struggling with this for like 2 days, and this was how I solved it.
You’ll need explain more please. I assume non of the earlier pictures about jar files I shared are relevant then seems your not mentioning them. So that leaves me with no clue about what and where , with this jar file.
Can you help with these jars files. So your saying these plugins do conflict then, because that a jar file needs removing. Please help friend
Hi, I also experienced some conflicts with the android-support-v4.jar after importing Admob and PluginSdkboxAds.
Reproducing what I had done to solve it:
Change your PROP_COMPILE_SDK_VERSION / PROP_MIN_SDK_VERSION / PROP_TARGET_SDK_VERSION variables to be compatible with sdkbox libraries.
These variables can be found in your file named “OrbitalRushApp/proj.android-studio/gradle.properies”
For example to enable AdMob I changed mine configuration to:
I restarted the project ages ago. i cant share until I get back to that stage again. Ill be hesitant do so because i had to restart project three times now and that also included a google play services entire new everything.